[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Un aiuto con iptables



Scusate se insisto con iptables :-)

eth0 --> router
eth1 --> lan
tap0 --> vpn

Parte delle mie regole sono:

iptables -F
iptables -X
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P INPUT DROP

iptables -A INPUT -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i tap0 -m state --state ESTABLISHED,RELATED -j ACCEPT
# LAN
iptables -A INPUT -i eth1 -p tcp --dport ssh -j ACCEPT
iptables -A INPUT -i eth1 -p udp --dport 2746 -j ACCEPT

# INTERNET
iptables -A INPUT -i eth0 -p tcp --dport ssh -j ACCEPT

Vorrei capire perche' la vpn non funziona..

Grazie!
Pol



Reply to: