Hi all,
First of all thanks for the software. I am currently helping out
setting up a l2tp LNS server for a company that I do a bit of work for
every now and then.
While I am not a linux newbie this is my first effort into l2tp, from
what I have read so far is seems like it should be quite successful, I
have already built at tested my radius server and it is working
properly. I do have a few questions though;-
1. Does it work with the 2.6 kernels OK, It seems to come up without
complaint and creates the tun0 with no complaints.
2. Do I set up the bind_address to the ip address I am expecting the
tunnels on in the config file to an existing ip address on my box (One
that is brought up using the network rc scripts) or do I not configure
it that way and just use the tun0 connection?
3. Is there an easy way to simulate a full connection, I have used l2tpd
to create a tunnel to it but that is about it, it does not try to
authenticate or bring up a ppp connection or even talk to the radius
server. I even have a few windows boxes here if that helps.
4. The authentication on the telnet does not seem to work, is there
something I am missing?
Here are my relevant config files;-
startup-config
set debug 4
set log_file "/var/log/l2tpns"
set l2tp_secret "not_telling"
set primary_dns 203.167.207.130
set secondary_dns 203.167.207.131
set save_state yes
set snoop_host 1.2.3.4
set snoop_port 41001
set primary_radius 127.0.0.1
set secondary_radius 127.0.0.1
set radius_accounting yes
set radius_secret "cirad"
set bind_address 203.98.5.218
set cluster_master 0.0.0.0
set throttle_speed 64
set accounting_dir "/var/run/l2tpns/acct/"
set setuid 0
set dump_speed no
load plugin "garden"
load plugin "autothrottle"
load plugin "autosnoop"
users
# List username:password combinations here for cli users
dialup:not_telling
Here is the first part of the log to show you it is coming up;-
2004-09-01 21:22:04 00/00 Loading plugin from /usr/lib/l2tpns/garden.so
2004-09-01 21:22:04 00/00 Supports function "plugin_post_auth"
2004-09-01 21:22:04 00/00 Supports function "plugin_new_session"
2004-09-01 21:22:04 00/00 Supports function "plugin_kill_session"
2004-09-01 21:22:04 00/00 Supports function "plugin_control"
2004-09-01 21:22:04 00/00 Supports function "plugin_become_master"
2004-09-01 21:22:04 00/00 Supports function
"plugin_new_session_master"
2004-09-01 21:22:04 00/00 Loaded plugin garden
2004-09-01 21:22:04 00/00 Loading plugin from
/usr/lib/l2tpns/autothrottle.so
2004-09-01 21:22:04 00/00 Supports function "plugin_radius_response"
2004-09-01 21:22:04 00/00 Loaded plugin autothrottle
2004-09-01 21:22:04 00/00 Loading plugin from
/usr/lib/l2tpns/autosnoop.so
2004-09-01 21:22:04 00/00 Supports function "plugin_radius_response"
2004-09-01 21:22:04 00/00 Loaded plugin autosnoop
2004-09-01 21:22:04 00/00 L2TPNS version 2.0.1
2004-09-01 21:22:04 00/00 Copyright (c) 2003, 2004 Optus Internet
Engineering
2004-09-01 21:22:04 00/00 Copyright (c) 2002 FireBrick (Andrews & Arnold
Ltd / Watchfront Ltd) - GPL licenced
2004-09-01 21:22:04 00/00 Registered BGP route 203.98.5.218/32
2004-09-01 21:22:04 00/00 Set up on interface tun0
2004-09-01 21:22:04 00/00 Creating 64 sockets for RADIUS queries
2004-09-01 21:22:04 00/00 Adding IP address range 203.167.228.0/24
2004-09-01 21:22:04 00/00 Route add 203.167.228.0/255.255.255.0 0.0.0.0
2004-09-01 21:22:04 00/00 Registered BGP route 203.167.228.0/24
2004-09-01 21:22:04 00/00 IP address pool is 254 addresses
2004-09-01 21:22:04 00/00 State file is too old to read, ignoring
2004-09-01 21:22:04 00/00 Beginning of main loop. udpfd=8, tunfd=6,
cluster_sockfd=5, controlfd=10
2004-09-01 21:22:18 00/00 Master timed out! Holding election...
2004-09-01 21:22:18 00/00 I am declaring myself the master!
2004-09-01 21:22:18 00/00 Running iptables -t nat -N garden >/dev/null
2>&1
2004-09-01 21:22:18 00/00 Running iptables -t nat -F garden
2004-09-01 21:22:18 00/00 Running . /etc/l2tpns/build-garden
2004-09-01 21:22:18 00/00 Running iptables -t nat -N garden_users
>/dev/null 2>&1
2004-09-01 21:22:18 00/00 Running iptables -t nat -F garden_users
2004-09-01 21:22:18 00/00 Running iptables -t nat -A PREROUTING -j
garden_users
2004-09-01 21:22:18 00/00 Running sysctl -w
net.ipv4.ip_conntrack_max=256000 >/dev/null
2004-09-01 21:22:18 00/00 Warning: Fixed 49998 uninitialized sessions in
becoming master!
2004-09-01 21:22:18 00/00 Sending heartbeat #0 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:18 00/00 Begin regular cleanup
2004-09-01 21:22:18 00/00 End regular cleanup (0 actions), next in 10
seconds
2004-09-01 21:22:19 00/00 Sending heartbeat #1 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:19 00/00 Sending heartbeat #2 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:20 00/00 Sending heartbeat #3 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:20 00/00 Sending heartbeat #4 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:21 00/00 Sending heartbeat #5 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:21 00/00 Sending heartbeat #6 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:22 00/00 Sending heartbeat #7 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:22 00/00 Sending heartbeat #8 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
2004-09-01 21:22:23 00/00 Sending heartbeat #9 with 0 changes (0 x-sess,
0 x-tunnels, 0 highsess, 0 hightun size 136)
Here is a dump from ifconfig;-
eth0 Link encap:Ethernet HWaddr 00:08:02:A5:25:8A
inet addr:203.98.5.218 Bcast:203.98.5.255 Mask:255.255.255.0
inet6 addr: fe80::208:2ff:fea5:258a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:884352 errors:0 dropped:0 overruns:0 frame:0
TX packets:379200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:93674768 (89.3 Mb) TX bytes:99442499 (94.8 Mb)
eth0:0 Link encap:Ethernet HWaddr 00:08:02:A5:25:8A
inet addr:203.167.253.98 Bcast:203.167.253.103
Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0:1 Link encap:Ethernet HWaddr 00:08:02:A5:25:8A
inet addr:10.0.0.151 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:31062 errors:0 dropped:0 overruns:0 frame:0
TX packets:31062 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1558135 (1.4 Mb) TX bytes:1558135 (1.4 Mb)
tun0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:203.98.5.218 P-t-P:203.98.5.218
Mask:255.255.255.255
UP POINTOPOINT RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Looking forward to your responses, and thanks in advance for the help
and software.
Neil Fincham
|