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

routing - iptables - problem



Hello debian-user-polish,

eth0 - polpak, domyslna bramka
eth3 - netia

taka konfiguracja:

ip route add 81.210.69.56/29 dev eth3 src 81.210.69.58 table www.out
ip route add default via 81.210.69.57 table www.out
ip rule add fwmark 9 table www.out
ip rule add fwmark 7 table www.out
ip route flush cache

mark 7 to:
iptables -A PREROUTING -t mangle -p tcp --dport 80 -j MARK --set-mark 7

nastepnie firewall:
iptables -A FORWARD -s 192.168.0.1/24 -j ACCEPT
iptables -A FORWARD -s 192.168.1.1/24 -j ACCEPT

iptables -t nat -A POSTROUTING  -o eth0 -j SNAT --to 217.97.252.226 --to 81.210.69.58

dlaczego po wlaczeniu routingu przez netie ruch www zamiera?
jak to wszystko polaczyc ze soba?

z gory dzieki
jr

-- 
Best regards,
 amon                          mailto:amon@mikule.net



Reply to: