Thank you for all the advices.
So far, these rules below were enough, but, since X, they seem not to work anymore.
Any idea why?
- Code: Select all
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o ppp0 -j MASQUERADE
iptables -A FORWARD -o ppp0 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
- Code: Select all
iptables -nL -v --line-numbers -t nat
Chain PREROUTING (policy ACCEPT 5541 packets, 536K bytes)
num pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 2274 packets, 240K bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 4186 packets, 252K bytes)
num pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 4186 packets, 252K bytes)
num pkts bytes target prot opt in out source destination
1 9013 593K MASQUERADE all -- * ppp0 192.168.0.0/16 0.0.0.0/0
- Code: Select all
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
TCPMSS tcp -- anywhere anywhere tcpflags: SYN,RST/SYN TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
