Mam następujący problem:
Chciałem ustawić sobie iptables tak żeby jedyny dozwolony ruch to były połączenia ssh na port 10000.
Problem jest taki że przy takich ustawieniach działa:
Kod: Zaznacz cały
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere 192.168.0.1 tcp spts:login:65535 dpt:10000 state NEW,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- 192.168.0.1 anywhere tcp spt:10000 dpts:login:65535 state ESTABLISHED
Kod: Zaznacz cały
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere 192.168.0.1 tcp spts:login:65535 dpt:10000 state NEW,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination