wahrscheinlich kann es keiner mehr hören, aber irgendwie kann ich es nicht aus den Forumsbeuträgen rauslesen, hier also meine Frage zum Routing:
Ich habe einen debian etch Rechner mit 3 Netzwerkkarten. Meine route sieht so aus:
Code: Alles auswählen
Ziel Router Genmask Flags Metric Ref Use Iface
dslb-084-000-00 * 255.255.255.255 UH 0 0 0 ppp0
192.168.38.0 localhost 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
192.168.10.0 localhost 255.255.255.0 UG 0 0 0 eth1
default dslb-084-000-00 0.0.0.0 UG 0 0 0 ppp0
IpForwarding ist an. Meine IPTables sehen so aus:
Code: Alles auswählen
Chain INPUT (policy DROP)
target prot opt source destination
LOG tcp -- anywhere anywhere tcp dpt:openvpn LOG level warning prefix `SEEN INPUT: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `SEEN INPUT: '
DROP all -- localhost.localdomain anywhere
DROP all -- anywhere localhost.localdomain
DROP all -- localhost/16 anywhere
DROP all -- localhost/16 anywhere
ACCEPT all -- localhost.localdomain anywhere
ACCEPT all -- anywhere localhost.localdomain
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT udp -- anywhere anywhere udp dpt:openvpn
ACCEPT udp -- anywhere anywhere udp spt:openvpn
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
LOG udp -- anywhere anywhere udp dpt:openvpn LOG level warning prefix `DROP INPUT: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `DROP INPUT: '
Chain FORWARD (policy DROP)
target prot opt source destination
LOG tcp -- anywhere anywhere tcp dpt:openvpn LOG level warning prefix `SEEN FORWARD: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `SEEN FORWARD: '
DROP all -- localhost.localdomain anywhere
DROP all -- anywhere localhost.localdomain
DROP all -- localhost/16 anywhere
DROP all -- localhost/16 anywhere
DROP tcp -- anywhere anywhere tcp spts:netbios-ns:netbios-ssn
DROP udp -- anywhere anywhere udp spts:netbios-ns:netbios-ssn
ACCEPT udp -- anywhere anywhere udp dpt:openvpn
ACCEPT udp -- anywhere anywhere udp spt:openvpn
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
LOG udp -- anywhere anywhere udp dpt:openvpn LOG level warning prefix `DROP FORWARD: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `DROP FORWARD: '
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
LOG tcp -- anywhere anywhere tcp dpt:openvpn LOG level warning prefix `SEEN OUTPUT: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `SEEN OUTPUT: '
DROP tcp -- anywhere anywhere tcp spts:netbios-ns:netbios-ssn
DROP udp -- anywhere anywhere udp spts:netbios-ns:netbios-ssn
ACCEPT udp -- anywhere anywhere udp dpt:openvpn
ACCEPT udp -- anywhere anywhere udp spt:openvpn
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW
LOG udp -- anywhere anywhere udp dpt:openvpn LOG level warning prefix `DROP OUTPUT: '
LOG udp -- anywhere anywhere udp spt:openvpn LOG level warning prefix `DROP OUTPUT: '
Chain RULE_4 (0 references)
target prot opt source destination
Ciao
Matze