This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vpn [2021/11/01 14:08] robm Add Fast Reliable Proxy (frp_ |
vpn [2025/06/27 15:40] (current) robm Improve iptables commands |
||
---|---|---|---|
Line 41: | Line 41: | ||
# responses are likewise accepted | # responses are likewise accepted | ||
echo 1 > / | echo 1 > / | ||
- | / | + | #/ |
/ | / | ||
-m state --state RELATED, | -m state --state RELATED, | ||
Line 50: | Line 50: | ||
# this host, so *we* can forward it to the remote end. This is the MASQUERADE | # this host, so *we* can forward it to the remote end. This is the MASQUERADE | ||
# rule. | # rule. | ||
- | / | + | #/ |
- | / | + | / |
# Monitor packets | # Monitor packets | ||
Line 88: | Line 88: | ||
- **As root** on your client system, generate a new SSH keypair to use for VPN. < | - **As root** on your client system, generate a new SSH keypair to use for VPN. < | ||
- Install new public key into remote system, and prefix with a ForeCommand which is run whenever this key is used to authenticate:< | - Install new public key into remote system, and prefix with a ForeCommand which is run whenever this key is used to authenticate:< | ||
- | printf ' | + | printf ' |
cat ~/ | cat ~/ | ||
) | ssh root@www.robmeerman.co.uk tee -a .ssh/ | ) | ssh root@www.robmeerman.co.uk tee -a .ssh/ | ||
Line 95: | Line 95: | ||
User root | User root | ||
# Remote' | # Remote' | ||
- | # tunnel=" | + | # tunnel=" |
IdentityFile ~root/ | IdentityFile ~root/ | ||
Tunnel yes | Tunnel yes | ||
Line 157: | Line 157: | ||
# ( \ | # ( \ | ||
- | # | + | # |
# cat ~/ | # cat ~/ | ||
# ) | ssh root@www.robmeerman.co.uk tee -a .ssh/ | # ) | ssh root@www.robmeerman.co.uk tee -a .ssh/ |