ah2-in.sh

来自「This a good VPN source」· Shell 代码 · 共 27 行

SH
27
字号
#!/bin/shTZ=GMT export TZipsec spi --clearipsec eroute --clearauthkey=0xA9876587658765876587658765876587abcdef01ipsec spi --af inet --edst 192.1.2.45 --spi 0xA9123456 --proto ah --src 192.1.2.23 --ah hmac-sha1-96 --authkey $authkeyipsec spi --af inet --edst 192.1.2.45 --spi 0xA9123456 --proto tun --src 192.1.2.23 --dst 192.1.2.45 --ip4ipsec spigrp inet 192.1.2.45 0xA9123456 tun inet 192.1.2.45 0xA9123456 ahipsec tncfg --attach --virtual ipsec0 --physical eth1ifconfig ipsec0 inet 192.1.2.45 netmask 0xffffff00 broadcast 192.1.2.255 up#arp -s 192.1.2.23 10:00:00:64:64:45#arp -s 192.1.2.254 10:00:00:64:64:45ipsec look# magic route commandroute add -host 192.0.2.1 gw 192.1.2.23 dev ipsec0

⌨️ 快捷键说明

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