Networking Forums

Networking Forums > Computer Networking > Linux Networking > routing between public IP's using iptables

Reply
Thread Tools Display Modes

routing between public IP's using iptables

 
 
sandeepagarwal.1980@gmail.com
Guest
Posts: n/a

 
      05-28-2005, 11:53 AM
hello list,

i have got a linux machine configured as a router/gateway for my
internal network working abs. fine. i wanted to know is it possible to
route all the traffic coming from source (61.x.x.x) to the external
network of the gateway (132.100.200.128) to 210.204.124.138 (some
destination on Internet)


Sandeep

 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      05-28-2005, 01:52 PM
(E-Mail Removed) writes:

>hello list,


>i have got a linux machine configured as a router/gateway for my
>internal network working abs. fine. i wanted to know is it possible to
>route all the traffic coming from source (61.x.x.x) to the external


Who gave you permission to use those particular IP addresses? Or did you
just decide to use them on your own? That is "illegal"-- someone already
owns them and any traffic to those addresses will get routed to whoever
owns them, not to you. Use either 10.x.x.x or 192.168.x.x as your internal
addresses.

When you have done that, look at IP Masquarading In this the internal
machine addresses are translated to a range of port numbers of the one
gateway machine, and it acts as the traffic cop redirecting the packets.

>network of the gateway (132.100.200.128) to 210.204.124.138 (some
>destination on Internet)



>Sandeep


 
Reply With Quote
 
sandeepagarwal.1980@gmail.com
Guest
Posts: n/a

 
      05-30-2005, 05:00 AM
well these public IP's are just choosen at random, to explain the
problem, the 2 IP's that i own are different. Let us assume that are
x.x.x.x and y.y.y.y and i want to forward any traffic comming from IP,
say (a.a.a.a) to x.x.x.x to be forwarded to y.y.y.y

Network address translation (NAT) is a technique of transparently
mapping an IP address or range to another IP address or range. Any
routing device situated between two endpoints can perform this
transformation of the packet.

my question is it possible to do that on the destination ?

 
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
Routing problems with two public NICs Oscar Gunnarsson Windows Networking 2 01-16-2008 08:55 PM
IPTables not forwarding from public to private subnet. techjohnny@gmail.com Linux Networking 2 09-28-2007 10:57 PM
IPTables with Virtual Interfaces and Multiple Public IPs martin.fowler@gmail.com Linux Networking 2 08-08-2007 06:36 PM
Connect public IP from inside - IPTables Marv Linux Networking 1 03-04-2004 01:07 AM
Iptables: How do I forwarding public IPs into a router inside a privateIP network? Stephen Hurrell Linux Networking 1 11-22-2003 10:17 PM



1 2 3 4 5 6 7 8 9 10 11