我有VPN服务器和拓扑是:
我在客户端2嗅探,当我访问客户端FTP 1,FTP密码不encryption在这里我的configuration:
– 在/ etc / ipsec.conf文件
version 2 config setup dumpdir=/var/run/pluto/ nat_traversal=yes virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v6:fd00::/8,%v6:fe80::/10 protostack=netkey force_keepalive=yes keep_alive=60 conn L2TP-PSK authby=secret pfs=no auto=add keyingtries=3 ikelifetime=8h keylife=1h ike=aes256-sha1;modp1024! phase2alg=aes256-sha1;modp1024 type=transport left=104.18.108.2 leftprotoport=17/1701 right=%any rightprotoport=17/%any dpddelay=10 dpdtimeout=20 dpdaction=clear
– 在/ etc / ipsec.secrets
104.18.108.2 %any: PSK "vpnnn"
-校验
Checking your system to see if IPsec got installed and started correctly: Version check and ipsec on-path [OK] Linux Openswan U2.6.32/K2.6.32-71.29.1.el6.i686 (netkey) Checking for IPsec support in kernel [OK] SAref kernel support [N/A] NETKEY: Testing for disabled ICMP send_redirects [OK] NETKEY detected, testing for disabled ICMP accept_redirects [OK] Testing against enforced SElinux mode [OK] Checking that pluto is running [OK] Pluto listening for IKE on udp 500 [OK] Pluto listening for NAT-T on udp 4500 [OK] Two or more interfaces found, checking IP forwarding [OK] Checking NAT and MASQUERADEing [OK] Checking for 'ip' command [OK] Checking /bin/sh is not /bin/dash [OK] Checking for 'iptables' command [OK] Opportunistic Encryption Support [DISABLED]
/etc/xl2tpd/xl2tpd.conf
[全球]
听= 104.18.108.2
; ipsec saref = yes
;强制userspace =是
[默认]
ip range = 192.168.1.2-192.168.1.254
本地ip = 192.168.1.1
拒绝pap =是的
要求authentication=是
ppp_debug = no
pppoptfile = /etc/ppp/options.xl2tpd
长度位=是
– 在/ etc / ppp / options.xl2tpd
require-mschap-v2 refuse-pap ms-dns 8.8.8.8 noccp auth crtscts idle 1800 mtu 1410 mru 1410 nodefaultroute debug lock proxyarp connect-delay 5000 name l2tpd
– 在/ etc / ppp / chap-secrets中
# client server secret IP addresses bob l2tpd nana *
如何将我的VPN隧道路由到networking(192.168.122.0/24)?