how setup NAT or RNAT
bert hubert
ahu@casema.net
Sun, 17 Oct 1999 12:40:16 +0200
On Sun, Oct 17, 1999 at 05:50:57PM +1000, root wrote:
> ;-) (sory for my english it's not my language I speek french ( from
> ;-) Quebec ))
Ok. Oh, and please don't tread the net using a 'root' name, it confuses me
and some mail user agents out there.
> Linux local net
> ___________ ______________
> ( ) | | |-
> ( Internet )---(eth0) (eth1)---|--(server 10.0.0.3)
> (___________) |______________| |-
>
> eth0:= eth1:=
> 207.236.187.34 10.0.0.2
>
> I would like to Internet see my server
>
> I do not understand how set extention ipnatctl for this
Ok, the trick is, the internet knows that when it sees 207.236.187.34, that
packet should be delivered to your Linux box. When it sees 207.236.187.35,
it will either deliver it elsewhere, or drop the packet.
However, you CAN assign certain ports on your Linux box to be forwarded to
your server, this is called reverse NAT, or reverse masquerading in a
previous life.
You might set this up like this:
ipnatctl -I -p tcp -d 207.236.187.34 --dport 80 --b destination -t 10.0.0.3
This would process a connection coming from the internet to your linux
server, port 80, such that it would end up at port 80 of your server. If you
want it to arrive at another port, use the --to-port n feature.
It may even work without specifying a port to use, in which case it might
RNAT *all* connections to your server. I'm not sure about this.
Hope this helps..
--
+---------------+ | http://www.rent-a-nerd.nl
| nerd for hire | |
+---------------+ |
| | Inspice et cautus eris - D11T'95