Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 12:52:18 -0400
From:      "James Gill" <gill@topsecret.net>
To:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   natd redirects not happening
Message-ID:  <NDBBJDFMIMOCFNNCEKADCEHGCPAA.gill@topsecret.net>

next in thread | raw e-mail | index | archive | help

I'm having trouble trying to redirect incoming connections to my
firewall on specific ports to other machines on my network.

In looking at my natd stuff in rc.conf and it seems (to me) to be
right:
--------------------------------------
### FIREWALL AND NATD CONFIG ###
firewall_enable="YES"
firewall_type="open"

natd_program="/sbin/natd"
natd_enable="YES"	#firewall_enable must also be set to yes
#			#and ipdivert must also be in kernel
natd_interface="ed1"
natd_flags="-f /etc/rc.natd"
--------------------------------------

and the file rc.natd is long and full of comments, but here's the
relevant section:
--------------------------------------
### redirected ports ###
# redirect_port proto tergetIP:targetPORT [aliasIP:]aliasPORT \
# [remoteIP[:remotePORT]]
#	example: redirect_port tcp inside1:telnet 6666
# means that tcp packets destines for port 6666 on this machine will
be sent
# to the telnet port on the inside1 machine
#redirect_port
redirect_port tcp 10.101.101.33:21 21		#ftp
redirect_port tcp 10.101.101.131:23 23		#telnet
redirect_port tcp 10.101.101.33:25 25		#smtp
redirect_port tcp 10.101.101.33:80 80		#www-tcp
redirect_port udp 10.101.101.33:80 80		#www-udp
redirect_port tcp 10.101.101.33:110 110		#pop3-tcp
redirect_port udp 10.101.101.33:110 110		#pop3-udp
--------------------------------------

What am i missing?  Why are my redirects not happening?

--gill



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJDFMIMOCFNNCEKADCEHGCPAA.gill>