| |
Network: Natd: Redirecting ports using(last edit: 2001-03-18)
Redirecting ports to an internal private space address is best done using natd and the
"-redirect_port" option. The easiest way to do this is to add to /etc/rc.conf the line:
natd_flags="-f /etc/natd.conf"
Next make a file /etc/natd.conf which contains:
----------------------------------------------------
alias_address 24.132.90.99
# alias_address is alleen nodig als de -n optie niet
# word gebruikt. Zie "man natd".
use_sockets yes
same_ports yes
redirect_port tcp 192.168.0.6:4000 4000
redirect_port udp 192.168.0.6:4000 4000
# om deze file te begruiken moet in rc.conf de regel
# natd_flags="-f /etc/natd.conf"
# worden toegevoegd.
----------------------------------------------------
If you want (for example) port 2221 to redirect to port 21 on a internal
server with a privatespace ip, you should add a config line that looks something
like:
redirect_port tcp 192.168.1.123:21 2221
^^^ ^^^ ^^ ^^^^
protocoll | private- | port | port on
to redirect | space ip | to re- | local machine
| to re- | direct |
| direct to | to. |
I you have any question mail them to:
Sjoerd
Send your questions to: I.dont.get.it@t-l.org
Click here to go back to the index.
|