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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MOre NATD problems

Status
Not open for further replies.

ag6969

Technical User
Jun 4, 2001
85
CA
Port redirection is working fine for the one service. After trying and trying for about a week, (I really hate to have to bother everybody), I must give up again. Here is the problem, I have it redirecting traffic to an internal ftp server, which works fine. I use this option in rc.conf (or enter it at command line):
-redirect_port tcp 192.168.0.25:20-21 public.ip.adress:20-21 -interface xl1

Which works.
Now, if I try to pass another option for another system running telnet, I get an error, I type this:
natd -redirect_port tcp 192.168.0.22:23 pub.ip.addr:2003 -interface xl1

I have tried numerous port numbers on the public side, but with the same error:
natd:Unable to bind divert socket.:Address already in use

According to all documentation, I can simply enter more than one option, so this shouldn't be an issue. What is interesting is that if I create a natd.cf file and use that for my options with the two options listed, I don't get any errors at startup, and natd will pass on to the first option listed in the file, but the second service does not work. If I enter the ftp option first and telnet second, ftp works, telnet still doesn't) I am at real loss here, it makes no sense to me. If anybody has any clue as to what might be happening, anything, I would really appreciate help. Thanks alot.
 
I got it to work! I just put all of the options on one line, instead of trying to seperate them. Sounds strange, but it works! For some reason using a configuration file didn't work. But it's working now, so that's all that matters. Just in case anybody has the same problem, I'll post the natd entries I used in my rc.conf file.

natd_enable="YES"
natd_interface="xl1" (I'm using a 3com 3c905)
natd_flags="-redirect_port tcp 192.168.0.2:20-21 public.ip:20-21 -redirect_port tcp 192.168.0.3:23 public.ip:2003 -redirect_port tcp 192.168.0.5:2000-2001 public.ip:2000-2001"

Note that the natd_flags entry within the "" is all one line. (I'm redirecting 2000/2001 to another FTP server internally.

Hope this helps anybody else out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top