Привет всем! Извините за мой плохой английский. У меня проблемы с брандмауэром. Есть 2 соединения: 1 общее и 1 приватное. Я включил massguarade на общем интерфейсе и включил HTTP-прокси. Я хочу, чтобы только эти порты могли выходить и входить: TCP 21, 23, 25, 80, 110, 443, 1863, 3389, 5190. Я настроил следующим образом:
`/ ip firewall nat add chain=srcnat action=src-nat to-addresses=87.116. . to-ports=0-65535 comment=“” disabled=no`
`add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=3000 action=netmap to-addresses=192.168.0.1 to-ports=3000 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=3389 action=netmap to-addresses=192.168.0.1 to-ports=3389 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=21 action=netmap to-addresses=192.168.0.1 to-ports=21 comment=“” disabled=no`
`/ ip firewall connection tracking set enabled=yes tcp-syn-sent-timeout=2m tcp-syn-received-timeout=1m tcp-established-timeout=5d tcp-fin-wait-timeout=2m tcp-close-wait-timeout=1m tcp-last-ack-timeout=30s tcp-time-wait-timeout=2m tcp-close-timeout=10s udp-timeout=30s udp-stream-timeout=3m icmp-timeout=30s generic-timeout=10m`
`/ ip firewall filter add chain=input connection-state=invalid action=drop comment=“Firewall za ruter” disabled=no`
`add chain=input connection-state=established action=accept comment=“Allow Established connections” disabled=no`
`add chain=input protocol=udp action=accept comment=“Allow UDP” disabled=no`
`add chain=input protocol=icmp action=accept comment=“Allow ICMP” disabled=no`
`add chain=input src-address=192.168.0.0/24 action=accept comment=“Allow access to router from known network” disabled=no`
`add chain=input protocol=tcp dst-port=8291 action=accept comment=“” disabled=no`
`add chain=input action=drop comment=“Drop anything else” disabled=no`
`add chain=forward protocol=tcp dst-port=21 action=accept comment=“Firewall” disabled=no`
`add chain=forward protocol=tcp dst-port=23 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=25 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=53 action=accept comment=“” disabled=no`
`add chain=forward protocol=udp dst-port=53 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=80 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=110 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=443 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=1863 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=3375 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=3389 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=5190 action=accept comment=“” disabled=no`
`add chain=forward dst-address=192.168.0.1 p2p=all-p2p action=accept comment=“” disabled=no`
`add chain=forward p2p=all-p2p action=drop comment=“P2p Saobracaj” disabled=yes`
`add chain=forward in-interface=SBB protocol=tcp action=drop comment=“” disabled=yes`
Когда я включаю последнее правило, весь трафик останавливается. В чем проблема?
`/ ip firewall nat add chain=srcnat action=src-nat to-addresses=87.116. . to-ports=0-65535 comment=“” disabled=no`
`add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=3000 action=netmap to-addresses=192.168.0.1 to-ports=3000 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=3389 action=netmap to-addresses=192.168.0.1 to-ports=3389 comment=“” disabled=no`
`add chain=dstnat in-interface=SBB protocol=tcp dst-port=21 action=netmap to-addresses=192.168.0.1 to-ports=21 comment=“” disabled=no`
`/ ip firewall connection tracking set enabled=yes tcp-syn-sent-timeout=2m tcp-syn-received-timeout=1m tcp-established-timeout=5d tcp-fin-wait-timeout=2m tcp-close-wait-timeout=1m tcp-last-ack-timeout=30s tcp-time-wait-timeout=2m tcp-close-timeout=10s udp-timeout=30s udp-stream-timeout=3m icmp-timeout=30s generic-timeout=10m`
`/ ip firewall filter add chain=input connection-state=invalid action=drop comment=“Firewall za ruter” disabled=no`
`add chain=input connection-state=established action=accept comment=“Allow Established connections” disabled=no`
`add chain=input protocol=udp action=accept comment=“Allow UDP” disabled=no`
`add chain=input protocol=icmp action=accept comment=“Allow ICMP” disabled=no`
`add chain=input src-address=192.168.0.0/24 action=accept comment=“Allow access to router from known network” disabled=no`
`add chain=input protocol=tcp dst-port=8291 action=accept comment=“” disabled=no`
`add chain=input action=drop comment=“Drop anything else” disabled=no`
`add chain=forward protocol=tcp dst-port=21 action=accept comment=“Firewall” disabled=no`
`add chain=forward protocol=tcp dst-port=23 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=25 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=53 action=accept comment=“” disabled=no`
`add chain=forward protocol=udp dst-port=53 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=80 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=110 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=443 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=1863 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=3375 action=accept comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=3389 action=passthrough comment=“” disabled=no`
`add chain=forward protocol=tcp dst-port=5190 action=accept comment=“” disabled=no`
`add chain=forward dst-address=192.168.0.1 p2p=all-p2p action=accept comment=“” disabled=no`
`add chain=forward p2p=all-p2p action=drop comment=“P2p Saobracaj” disabled=yes`
`add chain=forward in-interface=SBB protocol=tcp action=drop comment=“” disabled=yes`
Когда я включаю последнее правило, весь трафик останавливается. В чем проблема?

)