Hello, I'm studying in a university and using FreeBSD as my daily computer operate system for months. However, I cannot connect to outside Internet via wired ethernet until now. There are two steps to set up a connection in my laboratory.
Here are some configuration files and other information about my network.
/etc/rc.conf:
/etc/resolv.conf
/usr/local/etc/ipsec.conf
/usr/local/etc/ipsec.secret
For my username and password, I used multi-entry for an account. Probably one entry is enough.
/usr/local/etc/mpd5/mpd.conf
/usr/local/etc/mpd5/mpd.secret
And here are some message from command
Following some info about Ubuntu and Windows vpn config.
Ubuntu l2tp vpn setup. I need to install network-manager-l2tp first to enable gui setting.
Windows l2tp vpn setup.
- First, provide the information of static ipv4 address, netmask, defaultrouter and DNS server.
- Second, set up a l2tp vpn client to the remote server. Every users should provide their own username and password.
Here are some configuration files and other information about my network.
/etc/rc.conf:
Code:
ifconfig_re0_ipv6="inet6 accept_rtad"
ifconfig_re0="inet *.*.*.76 netmask *.*.*.*"
defaultrouter="*.*.*.169"
/etc/resolv.conf
Code:
nameserver *.*.*.*
/usr/local/etc/ipsec.conf
Code:
config setup
strictcrlpolicy=no
conn l2tp_client
keyexchange=ikev2
type=transport
leftfirewall=yes
leftauth=eap-mschapv2
left=%defaultroute
leftprotoport=17/%any
right=lns.*.*.*
rightauth=pubkey
rightsubnet=*.*.*.169
rightprotoport=17/1701
auto=route
/usr/local/etc/ipsec.secret
Code:
lns.*.*.* 21***@* : XAUTH "Jw***"
21***@* : XAUTH "Jw***"
21***@* : EAP "Jw***"
21***@* : NTLM "Jw***"
/usr/local/etc/mpd5/mpd.conf
Code:
startup:
default:
load l2tp_client
l2tp_client:
create bundle static B_l2tp
set bundle enable compression
set iface enable tcpmssfix
set iface route default
set iface mtu 1428
create link static L_l2tp l2tp
set link action bundle B_l2tp
set link max-redial 5
set link keep-alive 0 0
set link yes acfcomp protocomp
set link accept pap
set link accept chap-msv2
set link accept chap
set link accept eap
set auth authname "21***@*"
set auth password "Jw***"
set l2tp peer lns.*.*.*
set l2tp disable dataseq
set l2tp enable outcall
open
Code:
21***@* "Jw***"
And here are some message from command
mpd5 l2tp_client
:
Code:
Multi-link PPP daemon for FreeBSD
process 4825 started, version 5.9
[B_l2tp] Bundle: Interface ng0 created
[L_l2tp] [L_l2tp] Link: OPEN event
[L_l2tp] LCP: Open event
[L_l2tp] LCP: state change Initial --> Starting
[L_l2tp] LCP: LayerStart
L2TP: Initiating control connection 0x80183f310 0.0.0.0 0 <-> 10.0.2.3 1701
L2TP: Control connection 0x80183f310 *.*.*.76 26062 <-> 10.0.2.3 1701 connected
ppp_l2tp_initiate: Operation not supported
[L_l2tp] Link: DOWN event
[L_l2tp] LCP: Down event
[L_l2tp] Link: reconnection attempt 1 in 3 seconds
L2TP: Control connection 0x80183f310 terminated: 8 ()
[L_l2tp] Link: reconnection attempt 1
L2TP: Initiating control connection 0x80183f610 0.0.0.0 0 <-> 10.0.2.3 1701
L2TP: Control connection 0x80183f610 *.*.*.76 22782 <-> 10.0.2.3 1701 connected
ppp_l2tp_initiate: Operation not supported
[L_l2tp] Link: DOWN event
[L_l2tp] LCP: Down event
[L_l2tp] Link: reconnection attempt 2 in 2 seconds
L2TP: Control connection 0x80183f610 terminated: 8 ()
[L_l2tp] Link: reconnection attempt 2
Following some info about Ubuntu and Windows vpn config.
Ubuntu l2tp vpn setup. I need to install network-manager-l2tp first to enable gui setting.
Windows l2tp vpn setup.