📄 west-console.txt
字号:
west:~# TESTNAME=dpd-05west:~# source /testing/pluto/bin/westlocal.shwest:~# iptables -F INPUT west:~# iptables -F OUTPUTwest:~# ipsec setup startipsec_setup: Starting Openswan IPsec VERSIONwest:~# sleep 5west:~# ipsec auto --add west-eastwest:~# ping -q -c 8 -n 192.1.2.23PING 192.1.2.23 (192.1.2.23): 56 data bytes--- 192.1.2.23 ping statistics ---8 packets transmitted, 8 packets received, 0% packet lossround-trip min/avg/max = 3.1/4.5/9.26 mswest:~# ipsec auto --up west-east112 "west-east" #1: STATE_AGGR_I1: initiate003 "west-east" #1: received Vendor ID payload [Dead Peer Detection]004 "west-east" #1: STATE_AGGR_I2: sent AI2, ISAKMP SA established {auth=OAKLEY_RSA_SIG cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1536}117 "west-east" #2: STATE_QUICK_I1: initiate004 "west-east" #2: STATE_QUICK_I2: sent QI2, IPsec SA establishedwest:~# echo "Tunnel should be up"Tunnel should be upwest:~# ipsec eroute0 192.1.2.45/32 -> 192.1.2.23/32 => tun0x1002@192.1.2.23west:~# sleep 15west:~# echo "Setting up block"Setting up blockwest:~# iptables -I INPUT -s 192.1.2.23/32 -d 0/0 -j DROPwest:~# iptables -I OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROPwest:~# sleep 10west:~# ipsec eroute0 192.1.2.45/32 -> 192.1.2.23/32 => tun0x1002@192.1.2.23west:~# sleep 10west:~# ipsec eroute0 192.1.2.45/32 -> 192.1.2.23/32 => %trapwest:~# sleep 10west:~# echo "Tunnel should be down on West, not East"Tunnel should be down on West, not Eastwest:~# ipsec eroute0 192.1.2.45/32 -> 192.1.2.23/32 => %trapwest:~# echo "Removing block"Removing blockwest:~# iptables -D INPUT -s 192.1.2.23/32 -d 0/0 -j DROPwest:~# iptables -D OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROPwest:~# ping -q -c 8 -n 192.1.2.23PING 192.1.2.23 (192.1.2.23): 56 data bytes--- 192.1.2.23 ping statistics ---8 packets transmitted, 7 packets received, 12% packet lossround-trip min/avg/max = 3.1/4.5/9.26 mswest:~# echo "Tunnel should be up"Tunnel should be upwest:~# ipsec eroute16 192.1.2.45/32 -> 192.1.2.23/32 => tun0x1004@192.1.2.23west:~# echo endendwest:~#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -