Networking Forums

Networking Forums > Computer Networking > Linux Networking > route or nat problem

Reply
Thread Tools Display Modes

route or nat problem

 
 
vega
Guest
Posts: n/a

 
      09-06-2004, 04:40 PM
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.




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of route pog Network Routers 0 12-14-2006 08:40 AM
ip route problem vrankom@gmail.com Linux Networking 3 10-31-2006 09:53 AM
php fsockopen problem (no route to host) kees hessels Network Routers 0 07-06-2006 11:16 AM
CMAK vpn add static route problem mactable Windows Networking 3 01-04-2006 02:11 PM
Problem with route Bruno Linux Networking 7 09-04-2005 08:13 PM



1 2 3 4 5 6 7 8 9 10 11