Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPFW / NATD setup

Status
Not open for further replies.

JaybOt

Programmer
Apr 18, 2001
101
GB
Hi all,

i'm trying to redirect a port from my 'gateway' PC to a specific host on my network. I have ipfw configured - running in 'stelth' mode to the outside world, i have priveiously used ppp nat to add static nat on the dial up device tun0. This works fine through my firewall!

I'm trying to change the way nat is run, so the rules are loaded as part of the firewall, or at boot with natd_flags option - i have a script - instead of when ppp is started. Basicaly i am planning to swap over to a cable modem SOON! and will need to run natd to to my redirection, and would like to set up the basic structure now.

I don't want to reconfigure my firewall to pass all packets through to natd. I just want to add a rule (in ipfw?) or some where to forward packets from port A on host A1 to port B.

I have preiviosly used ...

natd port udp xx.xx.xx.xx:port port

with dial up nat in ppp.conf. i am now tyring ...

redirect_port udp xx.xx.xx.xx:port port

in a natd script in /etc called by nat_flags in /etc/rc.conf

any help appreciated!

Jaybot =) "Always know what you say, but don't always say what you know!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top