Ich hab mir Xen installiert und es funktioniert eigentlich gut, ausser das masquerading nicht läuft.
Er läuft auf meinem "Server" welcher auch als Router fungiert und direkt am Cablemodem hängt.
Code: Alles auswählen
$IPT -t nat -A POSTROUTING -o eth1 -j MASQUERADE
./network-bridge status gibt folgendes aus:
Code: Alles auswählen
============================================================
13: eth3: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
link/ether 00:30:18:a4:aa:25 brd ff:ff:ff:ff:ff:ff
inet 192.168.15.75/24 brd 192.168.15.255 scope global eth3
inet6 fe80::230:18ff:fea4:aa25/64 scope link
valid_lft forever preferred_lft forever
18: xenbr1: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet6 fe80::200:ff:fe00:0/64 scope link
valid_lft forever preferred_lft forever
bridge name bridge id STP enabled interfaces
xenbr1 8000.feffffffffff no vif0.1
peth3
vif1.0
192.168.15.0/24 dev eth3 proto kernel scope link src 192.168.15.75
192.168.14.0/24 dev eth2 proto kernel scope link src 192.168.14.75
192.168.13.0/24 dev eth0 proto kernel scope link src 192.168.13.75
84.75.96.0/20 dev eth1 proto kernel scope link src 84.75.x.x
default via 84.75.x.x dev eth1
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
192.168.14.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
84.75.x.x 0.0.0.0 255.255.240.0 U 0 0 0 eth1
0.0.0.0 84.75.x.x 0.0.0.0 UG 0 0 0 eth1
============================================================
Code: Alles auswählen
tcpdump host jc-in-f99.google.com -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
16:47:01.226671 IP 192.168.15.24 > jc-in-f99.google.com: ICMP echo request, id 57092, seq 862, length 64
hat jemand eine Idee??
grüässli Urs
eine interessante Beobachtung ist noch :
Code: Alles auswählen
$IPT -t nat -A PREROUTING -i $WAN -p tcp --dport 22 -j DNAT --to-destination 192.168.15.24
$IPT -A FORWARD -i $WAN -o $XEN -j ACCEPT