Networking Forums

Networking Forums > Computer Networking > Linux Networking > redhat 6.2 and NAT with iproute

Reply
Thread Tools Display Modes

redhat 6.2 and NAT with iproute

 
 
TTK
Guest
Posts: n/a

 
      07-31-2003, 03:18 PM

Hi

My network is 172.22.72.x. One machine (172.22.72.60) has a
modem. The IP 172.22.72.59 is free. At the other end of the
RTC line theres a web server called 172.18.48.169.

I'd like to be able to connect to this web server from one
client on my network using the .59 address, being redirected
by .60 through the modem to the web server.

ipchains can't do DNAT, so I installed iproute from the CD.

The doc says I should type:
ip route add nat 172.22.72.59 via 172.18.48.169

But I get this error:
RTNETLINK answers: Invalid argument

What am I doing wrong ?

ip route show output:
172.18.48.169 via 172.18.48.169 dev sl0
172.18.48.169 dev sl0 scope link src 192.168.60.15 metric 1
172.22.72.60 dev eth0 scope link
172.22.72.0/24 dev eth0 proto kernel scope link src 172.22.72.60
127.0.0.0/8 dev lo scope link
default via 172.22.72.136 dev eth0
default dev sl0 scope link src 192.168.60.15 metric 1

ifconfig output:
eth0 Link encap:Ethernet HWaddr 00:02:B3:0C:F2:A1
inet addr:172.22.72.60 Bcast:172.22.72.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:3 txqueuelen:100
Interrupt:17 Base address:0x9000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

sl0 Link encap:Serial Line IP
inet addr:192.168.60.15 P-t-P:172.18.48.169 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10

route -n output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.18.48.169 172.18.48.169 255.255.255.255 UGH 0 0 0 sl0
172.18.48.169 0.0.0.0 255.255.255.255 UH 1 0 0 sl0
172.22.72.60 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
172.22.72.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.22.72.136 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 1 0 0 sl0


(I know I'd better upgrade this machine and use iptables but
it's impossible, due to many bad reasons.)

Thanks for any input !
--
TTK
--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/
 
Reply With Quote
 
 
 
 
/dev/rob0
Guest
Posts: n/a

 
      07-31-2003, 04:48 PM
In article <2003731-171810-(E-Mail Removed)>, TTK wrote:
> ipchains can't do DNAT, so I installed iproute from the CD.


I don't know about iproute2 for this ... I used to use ipmasqadm. This
is documented in the IP Masquerade HOWTO ... if they don't still have
kernel 2.2.x information, look for an older version of it (it might have
been a mini-HOWTO in those days.)
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
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
Redhat Linux 8 and Redhat Enterprise Linux 4 printer not configure Niraj Linux Networking 0 12-06-2006 04:51 AM
Can't get PCI Network Card to Work - Knoppix 4.0.2/Redhat 7.2/Redhat 8.0 deja@chronofish.com Linux Networking 0 11-20-2005 05:02 PM
SNAT not working with iproute source routing Tomasz Cholewa Linux Networking 1 02-10-2005 08:37 AM
iproute & 2 ISP's & mailserver D. Rodic Linux Networking 0 09-21-2004 11:17 AM
iproute & 2 ISP's & mailserver fdafa Linux Networking 0 09-21-2004 11:12 AM



1 2 3 4 5 6 7 8 9 10 11