Hi,
folgendes Setup:
Host: zoom
IP: 172.16.1.1/24
Host: spiderman
IP: 172.16.1.4/24
IP: 10.0.0.1/24
Wenn ich von zoom zu 172.16.1.4 pinge funktioniert das:
Auf zoom habe ich eine Route in das 10.0.0.0/24 Netz gesetzt:
Scheinbar interessiert ihn meine Route aber nicht die Bohne, denn ein traceroute auf 10.0.0.1 sollte ja zumindest die 172.16.1.4 zeigen oder?
Ein tcpdump auf spiderman zeigt auch definitiv, dass da nichts ankommt, dh das Problem muss auf zoom liegen. Hier meine Firewall:
Das was ich da mache match ja quasi auf die zweite Regel von OUTPUT (wobei die Default Policy eh auf ACCEPT ist). Von firewall-seite sollte doch also alles passen oder?
Sieht jemand den Fehler? Ich seh langsam den Wald vor lauter Bäumen nicht mehr
ciao
serow
folgendes Setup:
Host: zoom
IP: 172.16.1.1/24
Host: spiderman
IP: 172.16.1.4/24
IP: 10.0.0.1/24
Wenn ich von zoom zu 172.16.1.4 pinge funktioniert das:
Code:
mathias@zoom:~$ ping 172.16.1.4 -c 2
PING 172.16.1.4 (172.16.1.4) 56(84) bytes of data.
64 bytes from 172.16.1.4: icmp_seq=1 ttl=61 time=39.8 ms
64 bytes from 172.16.1.4: icmp_seq=2 ttl=61 time=40.3 ms
--- 172.16.1.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 39.866/40.129/40.392/0.263 ms
mathias@zoom:~$
Auf zoom habe ich eine Route in das 10.0.0.0/24 Netz gesetzt:
Code:
mathias@zoom:~$ sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
************ 88.198.108.17 255.255.255.240 UG 0 0 0 eth0
************ 0.0.0.0 255.255.255.240 U 0 0 0 eth0
10.0.0.0 172.16.1.4 255.255.255.0 UG 0 0 0 tun-split-udp
172.16.2.0 0.0.0.0 255.255.255.0 U 0 0 0 tun-full-tcp
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun-full-udp
172.16.1.0 0.0.0.0 255.255.255.0 U 0 0 0 tun-split-udp
0.0.0.0 88.198.108.17 0.0.0.0 UG 0 0 0 eth0
mathias@zoom:~$
Scheinbar interessiert ihn meine Route aber nicht die Bohne, denn ein traceroute auf 10.0.0.1 sollte ja zumindest die 172.16.1.4 zeigen oder?
Code:
mathias@zoom:~$ traceroute -n 10.0.0.1
traceroute to 10.0.0.1 (10.0.0.1), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 *^C
mathias@zoom:~$
Ein tcpdump auf spiderman zeigt auch definitiv, dass da nichts ankommt, dh das Problem muss auf zoom liegen. Hier meine Firewall:
Code:
iptables -P INPUT DROP # disallow input
iptables -P OUTPUT ACCEPT # allow output
iptables -P FORWARD DROP # disallow forwarding
###################################
# INPUT
###################################
iptables -A INPUT -i lo -j ACCEPT # loopback
iptables -A INPUT -i tun+ -j ACCEPT # traffic from vpn clients
source /etc/iptables/block-ranges # lock out china
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT # apache2
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT # openssh
iptables -A INPUT -i eth0 -p tcp --dport 25 -j ACCEPT # postfix
iptables -A INPUT -i eth0 -p tcp --dport 993 -j ACCEPT # dovecot
iptables -A INPUT -i eth0 -p udp --dport 1194 -j ACCEPT # openvpn split
iptables -A INPUT -i eth0 -p udp --dport 1195 -j ACCEPT # openvpn full
iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT # openvpn full
iptables -A INPUT -i eth0 -p icmp -j ACCEPT # allow ping
iptables -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT # allow related traffic
###################################
# FORWARD
###################################
iptables -A FORWARD -i tun+ -o tun+ -j ACCEPT # routing between vpn networkrs
iptables -A FORWARD -i tun+ -o eth0 -j ACCEPT # route vpn networks to the outside
iptables -A FORWARD -i eth0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
###################################
# OUTPUT
###################################
iptables -A OUTPUT -o lo -j ACCEPT # loopback
iptables -A OUTPUT -o tun+ -j ACCEPT # traffic to vpn clients
###################################
# POSTROUTING
###################################
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # nat routing from vpn networks to internet
Das was ich da mache match ja quasi auf die zweite Regel von OUTPUT (wobei die Default Policy eh auf ACCEPT ist). Von firewall-seite sollte doch also alles passen oder?
Sieht jemand den Fehler? Ich seh langsam den Wald vor lauter Bäumen nicht mehr

ciao
serow