summaryrefslogtreecommitdiff
path: root/net-dialup/openl2tp/files/examples
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-07 11:42:03 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-07 11:42:03 +0100
commitf70601e0934acd62f6c5d06c5ede4cc607179514 (patch)
tree0b337390375de04b950fc4b45edc0f895a4701a4 /net-dialup/openl2tp/files/examples
parentb2be182d49eea46686b5cf2680d457df61e89dc4 (diff)
gentoo resync : 07.07.2018
Diffstat (limited to 'net-dialup/openl2tp/files/examples')
-rw-r--r--net-dialup/openl2tp/files/examples/client.openl2tpd.conf30
-rw-r--r--net-dialup/openl2tp/files/examples/server-radius.openl2tpd.conf28
-rw-r--r--net-dialup/openl2tp/files/examples/server.openl2tpd.conf36
-rw-r--r--net-dialup/openl2tp/files/examples/server.options.openl2tpd23
4 files changed, 117 insertions, 0 deletions
diff --git a/net-dialup/openl2tp/files/examples/client.openl2tpd.conf b/net-dialup/openl2tp/files/examples/client.openl2tpd.conf
new file mode 100644
index 000000000000..6ead75a6296b
--- /dev/null
+++ b/net-dialup/openl2tp/files/examples/client.openl2tpd.conf
@@ -0,0 +1,30 @@
+system modify \
+ deny_remote_tunnel_creates=yes \
+ tunnel_establish_timeout=60 \
+ session_establish_timeout=0 \
+ tunnel_persist_pend_timeout=60 \
+ session_persist_pend_timeout=60
+
+ppp profile modify \
+ profile_name=default \
+ mtu=1460 \
+ mru=1460 \
+ auth_peer=no \
+ auth_pap=no \
+ auth_eap=no \
+ auth_mschapv1=no \
+ lcp_echo_interval=10 \
+ lcp_echo_failure_count=3 \
+ default_route=yes
+
+tunnel create \
+ tunnel_name=campus \
+ dest_ipaddr=my.l2tp.provider \
+ use_udp_checksums=off \
+ persist=yes
+
+session create \
+ tunnel_name=campus \
+ session_name=campus \
+ use_sequence_numbers=no \
+ user_name=my_user_name
diff --git a/net-dialup/openl2tp/files/examples/server-radius.openl2tpd.conf b/net-dialup/openl2tp/files/examples/server-radius.openl2tpd.conf
new file mode 100644
index 000000000000..e666fdec6106
--- /dev/null
+++ b/net-dialup/openl2tp/files/examples/server-radius.openl2tpd.conf
@@ -0,0 +1,28 @@
+ppp profile modify \
+ profile_name=default \
+ local_ipaddr=10.7.2.16 \
+ auth_eap=no \
+ auth_mschapv1=yes \
+ auth_mschapv2=yes \
+ use_radius=yes \
+ ipcp_retransmit_interval=1 \
+ lcp_retransmit_interval=1 \
+ lcp_echo_interval=5 \
+ chap_max_challenge=3 \
+ chap_restart=1 \
+ idle_timeout=0 \
+ max_connect_time=0 \
+ mtu=1460 \
+ mru=1460 \
+ radius_hint=/etc/radiusclient/radiusclient.conf
+
+tunnel profile modify \
+ profile_name=default \
+ src_ipaddr=10.50.0.16 \
+ retry_timeout=1 \
+ use_udp_checksums=no \
+ our_udp_port=1701
+
+session profile modify \
+ profile_name=default \
+ use_sequence_numbers=no
diff --git a/net-dialup/openl2tp/files/examples/server.openl2tpd.conf b/net-dialup/openl2tp/files/examples/server.openl2tpd.conf
new file mode 100644
index 000000000000..e960e14e1a33
--- /dev/null
+++ b/net-dialup/openl2tp/files/examples/server.openl2tpd.conf
@@ -0,0 +1,36 @@
+system modify \
+ deny_remote_tunnel_creates=no \
+ tunnel_establish_timeout=60 \
+ session_establish_timeout=0 \
+ tunnel_persist_pend_timeout=60 \
+ session_persist_pend_timeout=60
+
+ppp profile modify profile_name=default \
+ optionsfile=/etc/ppp/options.openl2tpd \
+ local_ipaddr=172.16.17.1 \
+ lcp_echo_interval=10 \
+ lcp_echo_failure_count=3 \
+ auth_eap=no \
+ auth_pap=no \
+ auth_none=no \
+ auth_chap=yes \
+ auth_mschapv1=no \
+ auth_mschapv2=yes
+
+session profile create profile_name=peer1 \
+ ppp_profile_name=peer1
+
+ppp profile create profile_name=peer1 \
+ optionsfile=/etc/ppp/options.openl2tpd \
+ auth_none=no \
+ auth_pap=no \
+ auth_chap=yes \
+ auth_mschapv1=no \
+ auth_mschapv2=yes \
+ auth_peer=no \
+ dns_ipaddr_pri=172.16.17.1 \
+ local_ipaddr=172.16.17.1 \
+ remote_ipaddr=172.16.17.6 # ipaddr of peer1
+
+tunnel profile modify profile_name=default \
+ our_udp_port=1701
diff --git a/net-dialup/openl2tp/files/examples/server.options.openl2tpd b/net-dialup/openl2tp/files/examples/server.options.openl2tpd
new file mode 100644
index 000000000000..411956fab1ac
--- /dev/null
+++ b/net-dialup/openl2tp/files/examples/server.options.openl2tpd
@@ -0,0 +1,23 @@
+# usually placed at /etc/ppp/options.openl2tpd
+name host
+auth
+plugin pppol2tp.so
+refuse-mschap
+require-mschap-v2
+hide-password
+ipcp-accept-local
+ipcp-accept-remote
+lcp-echo-interval 15
+lcp-echo-failure 4
+ms-dns 172.16.17.1
+netmask 255.255.255.0
+nodefaultroute
+proxyarp
+crtscts
+noccp
+nobsdcomp
+nodeflate
+noaccomp
+nopcomp
+novj
+lock