/opt/softether/vpncmd
Hub DEFAULT
UserCreate username UserPasswordSet username
Follow these steps if SecureNAT is chosen instead of Virtual Hub:
SecureNatEnable DhcpSet
Start Point for Distributed Address Band: 192.168.30.10 End Point for Distributed Address Band: 192.168.30.200 Subnet Mask: 255.255.255.0 Lease Limit (Seconds): 7200 Default Gateway: 192.168.30.1 DNS Server 1: 192.168.30.1 DNS server 2: 8.8.8.8 Domain Name: Press Enter to skip. Save Log: yes
exit
Follow these steps if Local Bridge Connection is chosen instead of SecureNAT.
SecureNatDisable
BridgeCreate YOUR_HUB_NAME /DEVICE:vpn /TAP:yes
exit
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s 192.168.40.0/24 -o ens3 -j MASQUERADE sudo iptables -A FORWARD -i tap_vpn -o ens3 -j ACCEPT sudo iptables -A FORWARD -i ens3 -o tap_vpn -j ACCEPT
sudo iptables -t nat -L -v -n
sudo apt install netfilter-persistent -y
sudo netfilter-persistent save
sudo sysctl -w net.ipv4.conf.tap_vpn.rp_filter=0 sudo sysctl -w net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.tap_vpn.rp_filter = 0 net.ipv4.conf.all.rp_filter = 0