Commit 85cb96f2 authored by nanahira's avatar nanahira

fix

parent 180369e1
...@@ -6,8 +6,8 @@ PPPOE_SELECTION_MARK=$((PPPOE_NEXT_HOP_MARK + 50)) ...@@ -6,8 +6,8 @@ PPPOE_SELECTION_MARK=$((PPPOE_NEXT_HOP_MARK + 50))
INTERFACE_MTU=$(ip link show dev "$PPP_IFACE" | grep -oP 'mtu \d+' | cut -c 5-) INTERFACE_MTU=$(ip link show dev "$PPP_IFACE" | grep -oP 'mtu \d+' | cut -c 5-)
INTERFACE_MTU_4=$[INTERFACE_MTU - 40] INTERFACE_MTU_4=$((INTERFACE_MTU - 40))
INTERFACE_MTU_6=$[INTERFACE_MTU - 60] INTERFACE_MTU_6=$((INTERFACE_MTU - 60))
iptables -t mangle -A FORWARD -o "$PPP_IFACE" -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss $INTERFACE_MTU_4:1460 -j TCPMSS --set-mss $INTERFACE_MTU_4 iptables -t mangle -A FORWARD -o "$PPP_IFACE" -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss $INTERFACE_MTU_4:1460 -j TCPMSS --set-mss $INTERFACE_MTU_4
iptables -t mangle -A FORWARD -i "$PPP_IFACE" -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss $INTERFACE_MTU_4:1460 -j TCPMSS --set-mss $INTERFACE_MTU_4 iptables -t mangle -A FORWARD -i "$PPP_IFACE" -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss $INTERFACE_MTU_4:1460 -j TCPMSS --set-mss $INTERFACE_MTU_4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment