minor fix for mangle tables in entrypoint.sh
This commit is contained in:
@@ -11,10 +11,11 @@ fi
|
||||
# sysctl -w net.ipv4.ip_forward=1 || true
|
||||
|
||||
# NAT MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -i tun* -o eth0 -j MASQUERADE
|
||||
|
||||
# MSS Clamping (Path MTU Tuning)
|
||||
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
|
||||
iptables -t mangle -A FORWARD -i tun* -o eth0-p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
|
||||
iptables -t mangle -A FORWARD -o tun* -i eth0-p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
|
||||
|
||||
# Ensure /run exists for PID files
|
||||
mkdir -p /run
|
||||
|
||||
Reference in New Issue
Block a user