NAT Port Forwarding with PPPoE won't work
Yeah!
planoprez at yahoo.com
Fri Jun 6 19:26:12 PDT 2003
Hey All---
I need some help, I'm trying to forward ports
5800-6000 on a PPPoE broadband connection to allow a
program called VNC to work. I have tried everything
but it seems to fail. I know VNC is working fine as I
can do a telnet localhost 5800 and it works from the
local box. But from outside the LAN no go. Here is
my ppp.conf file, and rc.conf please let me know what
I'm doing wrong.
Thanks!
JP
BEGIN PPP.CONF----
default:
set device PPPoE:rl0
set MRU 1490
set MTU 1490
set authname "xxxxxxx"
set authkey xxxxxxx
set log Phase tun command
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0
add default HISADDR
nat enable yes
nat port tcp 192.168.1.1:5800-5950 5800-5950
nat port udp 192.168.1.1:5800-5950 5800-5950
nat log yes
set cd off
set crtscts off
set redial 0 0
END PPP.CONF-----
BEGIN rc.conf-----
gateway_enable="YES"
hostname="xxxx.xxxx.xxxx"
#ifconfig_rl0="DHCP"
ifconfig_ed0="inet 192.168.1.254 netmask
255.255.255.0"
inetd_enable="YES"
kern_securelevel_enable="NO"
keyrate="fast"
moused_enable="YES"
moused_port="/dev/cuaa0"
moused_type="microsoft"
saver="logo"
sendmail_enable="YES"
enable_quotas="YES"
check_quotas="YES"
sshd_enable="YES"
usbd_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="default"
#firewall_enable="YES"
natd_enable="YES"
natd_interface="tun0"
natd_flags="-redirect_port tcp 192.168.1.1:5800-6000
5800-6000 -redirect_port udp 192.168.1.1:5800-6000
5800-6000"
end----
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
More information about the freebsd-questions
mailing list