westinit.sh

来自「ipsec vpn」· Shell 代码 · 共 38 行

SH
38
字号
: ==== start ====# reset network configuration so that west thinks it is on a different# subnet than east. Put it on a /27 (32-hosts)# we don't screw with east, although we ought to.namedifdown eth1ifconfig eth1 inet 192.1.2.45 netmask 255.255.255.224 up# use the default route at the top of the netmask.route add -net default gw 192.1.2.62: try default routeping -c 1 -n 192.1.2.62: try hitting east before doing IPsecping -c 1 -n 192.1.2.23ipsec setup start/testing/pluto/bin/wait-until-policy-loadedipsec auto --add us-to-anyoneipsec auto --route us-to-anyoneipsec auto --replace clearipsec whack --listenipsec auto --route clear: check out if .23 has proper TXT record.dig 23.2.1.192.in-addr.arpa. txtipsec lookecho end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?