DROP robię na Linuksie w firewallu jak odpalę skrypt to nie ma zupełnie komunikacji z RV042
Wygląda to tak:
Links 192.168.5.1 eth2 / Publiczny IP na eth1 <-------------------necik------------------> Publiczny IP / Lan 192.168.3.1 RV042 Router Linksysa
I jak z linuxa zrobię ping 192.168.3.1 to leci, tunel działa, wszyscy się radują.
Jak odpalę firewalla (wycinek powyżej) to ruch zamiera i co bym nie wpisywał nie jestem w stanie przywrócić komunikacji.
eth1 to WAN, eth2 to LAN na debianie
Dodane:
Kod: Zaznacz cały
root@shadow:/etc# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:isakmp
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:zabbix-agent
ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:zabbix-trapper
ACCEPT tcp -- anywhere anywhere tcp dpt:8822
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT tcp -- anywhere anywhere tcp dpt:xmpp-client
ACCEPT tcp -- anywhere anywhere tcp dpt:xmpp-server
ACCEPT udp -- anywhere anywhere udp dpt:9987
ACCEPT tcp -- anywhere anywhere tcp dpt:30033
ACCEPT tcp -- anywhere anywhere tcp dpt:10011
ACCEPT tcp -- anywhere anywhere tcp dpt:41144
ACCEPT udp -- anywhere anywhere udp dpt:2010
ACCEPT udp -- anywhere anywhere udp dpt:2011
ACCEPT tcp -- anywhere anywhere tcp dpt:re-mail-ck
ACCEPT udp -- anywhere anywhere udp dpt:re-mail-ck
ACCEPT tcp -- anywhere anywhere tcp dpt:51
ACCEPT udp -- anywhere anywhere udp dpt:51
ACCEPT tcp -- anywhere anywhere tcp dpt:isakmp
ACCEPT udp -- anywhere anywhere udp dpt:isakmp
ACCEPT tcp -- anywhere anywhere tcp dpt:4500
ACCEPT udp -- anywhere anywhere udp dpt:4500
ACCEPT tcp -- anywhere anywhere tcp dpt:l2f
ACCEPT udp -- anywhere anywhere udp dpt:l2f
ACCEPT esp -- anywhere anywhere
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT ipcomp-- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- 192.168.3.0/24 192.168.5.0/24 policy match dir out pol ipsec
ACCEPT all -- 192.168.5.0/24 192.168.3.0/24 policy match dir in pol ipsec
ACCEPT all -- anywhere 192.168.5.0/24
ACCEPT all -- 192.168.5.0/24 anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:re-mail-ck
ACCEPT udp -- anywhere anywhere udp dpt:re-mail-ck
ACCEPT tcp -- anywhere anywhere tcp dpt:51
ACCEPT udp -- anywhere anywhere udp dpt:51
ACCEPT tcp -- anywhere anywhere tcp dpt:isakmp
ACCEPT udp -- anywhere anywhere udp dpt:isakmp
ACCEPT tcp -- anywhere anywhere tcp dpt:4500
ACCEPT udp -- anywhere anywhere udp dpt:4500
ACCEPT tcp -- anywhere anywhere tcp dpt:l2f
ACCEPT udp -- anywhere anywhere udp dpt:l2f
ACCEPT esp -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
Brakowało:
Czyli wyjątku dla publicznego IP router RV042