Hi!
I'm a net with a linux machine as gateway with ip 192.168.1.66
In the net there are two adsl router R1 192.168.1.1 and R2 192.168.1.254,
and because I user linux as gateway I have this 3 routing table
local:
192.168.1.0/24 dev eth0 scope link
T1:
default via 192.168.1.1 dev eth0
T2:
default via 192.168.1.254 dev eth0
T3:
default
nexthop via 192.168.1.1 dev eth0 weight 1
nexthop via 192.168.1.254 dev eth0 weight 1
and this rules:
0: from all lookup local
1000: from 192.168.1.10 lookup T1 (*)
1100: from 192.168.1.1 lookup T1
1200: from 192.168.1.254 lookup T2
2000: from all lookup T3
this beacuse the pc with ip 192.168.1.10 must be use only router R1
Then I configure NAT on R1, i.e. forwarding incoming packet incoming in port
25 of R1 to PC with 192.168.1.3.
Then I configure NAT on R2, i.e. forwarding incoming packet incoming in port
25 of R1 to PC with 192.168.1.3.
Now from another pc that isn't in the net I telnet public IP assigned to R1
on port 2 all work OK, but If I telnet public IP assignet to R2, the
connection fail, but in the log of smtp server there is the connection
request. I tried to remove NAT on R1 but is the same. I tried to switch the
router R1 and R2 too, but is the same. Why my configuration don't work ?
Thanks to all, and forgive me for my bad english.
|