1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix bypass by destination port

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-12-06 18:08:04 +01:00
parent 275a0eb2e6
commit a66d365cc0

View file

@ -169,13 +169,13 @@ _bypass_dest_port() {
if [ "$valid_ip4" = "ok" ]; then
iptables-restore --wait=60 --noflush <<-EOF
*mangle
-A omr-bypass --protocol $protocol --destination-port $dport -j MARK --set-mark 0x539
-A omr-bypass --protocol $proto --destination-port $dport -j MARK --set-mark 0x539
COMMIT
EOF
elif [ "$valid_ip6" = "ok" ]; then
ip6tables-restore --wait=60 --noflush <<-EOF
*mangle
-A omr-bypass6 --protocol $protocol --destination-port $dport -j MARK --set-mark 0x6539
-A omr-bypass6 --protocol $proto --destination-port $dport -j MARK --set-mark 0x6539
COMMIT
EOF
fi
@ -183,13 +183,13 @@ _bypass_dest_port() {
if [ "$valid_ip4" = "ok" ]; then
iptables-restore --wait=60 --noflush <<-EOF
*mangle
-A omr-bypass --protocol $protocol --destination-port $dport -j MARK --set-mark 0x539$intfid
-A omr-bypass --protocol $proto --destination-port $dport -j MARK --set-mark 0x539$intfid
COMMIT
EOF
elif [ "$valid_ip6" = "ok" ]; then
ip6tables-restore --wait=60 --noflush <<-EOF
*mangle
-A omr-bypass6 --protocol $protocol --destination-port $dport -j MARK --set-mark 0x6539$intfid
-A omr-bypass6 --protocol $proto --destination-port $dport -j MARK --set-mark 0x6539$intfid
COMMIT
EOF
fi