I use FreeBSD 11.0 for a Gateway to the internet. On the local network I run win7 machines with TightVNC - so I can remotely mange them. But I can not get through to the local machines from the outside world. Not sure if it is the natd or ipfw.
The server rc.conf file is:
Then my natd.conf is:
I have tried this various ways but the natd port forwarding does not seem to work. I have commented out the firewall_script="/etc/ipfw.rules" line in the rc.conf to see if it is the ipfw rules - but still doesn't work.
Is their something new in 11.0 that is preventing the natd forwarding? This same setup is working fine on my 10.3 box.
Any help would be appreciated.
The server rc.conf file is:
Code:
hostname="gate.mydomain.com"
defaultrouter="189.199.69.193"
ifconfig_re0="inet 189.199.69.241 netmask 255.255.255.192"
ifconfig_dc0=" inet 192.168.10.1 netmask 255.255.255.0"
gateway_enable="YES"
natd_enable="YES"
natd_interface="re0"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_type="OPEN"
firewall_script="/etc/ipfw.rules"
sshd_enable="YES"
ntpd_enable="YES"
named_enable="YES"
sendmail_enable="NO"
dhcpd_enable="YES"
dhcpd_ifaces="dc0"
bsnmpd_enable="YES"
sshd_enable="YES"
Code:
interface re0
use_sockets yes
same_ports yes
dynamic yes
redirect_port tcp 192.168.10.116:5900 5900
redirect_port udp 192.168.10.116:5900 5900
I have tried this various ways but the natd port forwarding does not seem to work. I have commented out the firewall_script="/etc/ipfw.rules" line in the rc.conf to see if it is the ipfw rules - but still doesn't work.
Is their something new in 11.0 that is preventing the natd forwarding? This same setup is working fine on my 10.3 box.
Any help would be appreciated.
Last edited by a moderator: