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

routing 2 operatorow



Hello debian-user-polish,

eth0 - polpak ruting domyslny
eth3 - netia

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

ruch na eth3 leci w bajtach...
ruch widac:
 tcpdump -vn -i eth3
tcpdump: listening on eth3
18:06:45.189934 212.202.51.192.4662 > 192.168.1.52.4561: S [tcp sum ok] 3547418850:3547418850(0) ack 3966584823 win 65340 <mss 1452,nop,nop,sackOK> (DF) [ttl 1] (id 33282, len 48)
18:06:45.198216 212.202.51.192.4662 > 192.168.1.52.4561: . [tcp sum ok] ack 1 win 65340 (DF) [ttl 1] (id 33285, len 40)
18:06:46.563075 213.37.192.159.4662 > 192.168.1.52.4559: . [tcp sum ok] ack 3965273831 win 64240 (DF) [ttl 1] (id
20750, len 40)
18:06:46.570985 80.145.2.184.4662 > 192.168.1.52.4563: S [tcp sum ok] 1105502149:1105502149(0) ack 3967631428 win
65535 <mss 1452,nop,nop,sackOK> (DF) [ttl 1] (id 60050, len 48)
18:06:46.578608 213.37.192.159.4662 > 192.168.1.52.4559: S [tcp sum ok] 2528998366:2528998366(0) ack 3965273831 win 64240 <mss 1460,nop,nop,sackOK> (DF) [ttl 1] (id 20755, len 48)
18:06:46.812168 62.121.118.21.4662 > 192.168.0.84.2622: S [tcp sum ok] 2381583342:2381583342(0) ack 2231377338 win
 14600 <mss 1460,nop,nop,sackOK> (DF) [tos 0xe0]  [ttl 1] (id 59232, len 48)

 no ale to takie grosze ze niemozliwe...
 swita mi ze cos moze w iptables?
 jak ustawic maskowanie?
 w tej chwili mam:

 mam tak:
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
iptables -t nat -A POSTROUTING -o eth3 -j SNAT --to 81.210.69.58

z gory dzieki
jr

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



Reply to: