3 source /testing/pluto/bin/northlocal.sh
5 if [ -f /var/run/l2tpd.pid ]; then kill `cat /var/run/l2tpd.pid`; fi
11 # make sure that clear text does not get through
12 iptables -A INPUT -i eth1 -s 192.1.2.23 -p udp --sport 1701 -j REJECT
13 iptables -A OUTPUT -o eth1 -d 192.1.2.23 -p udp --dport 1701 -j REJECT
16 ipsec auto --add north--east-l2tp
17 ipsec auto --add north--east-pass
18 /testing/pluto/bin/wait-until-pluto-started
19 ipsec auto --route north--east-pass
20 ipsec whack --debug-control --debug-controlmore --debug-natt
22 if [ ! -f /etc/ppp/chap-secrets ]; then mount --bind /testing/pluto/l2tp-01 /etc/ppp; fi
23 (cd /tmp && l2tpd -c /testing/pluto/l2tp-01/north.l2tpd.conf -D 2>/tmp/l2tpd.log ) &
25 ipsec auto --route north--east-l2tp