Date: Tue, 9 Mar 2004 18:53:22 +0200 From: "Prodigy" <prodigy@punktas.lt> To: "freebsd-questions" <freebsd-questions@freebsd.org> Subject: ipfw + natd - not sharing internet for LAN users Message-ID: <001801c405f7$0c9e52e0$1e00a8c0@prodigy>
index | next in thread | raw e-mail
Hi, I have problem with freebsd. I'm using ipfw + natd to share internet connection to my network (LAN) users, but my server is not sharing internet. My server has internet. It pings google.com, etc. Machine: FreeBSD4.9-STABLE Kernel configuration: # ... Some other stuff goes here options IPFIREWALL options IPFIREWALL_FORWARD options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=10 options IPFIREWALL_DEFAULT_TO_ACCEPT # Firewall is accepting all packets by default options RANDOM_IP_ID options TCP_DROP_SYNFIN options IPSTEALTH options IPDIVERT # ... Some other stuff goes here rc.conf: defaultrouter="213.190.42.1" hostname="panemune.net" ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0" # Network (LAN) interface ifconfig_ed1="inet 213.190.42.48 netmask 255.255.255.0" # Internet (outside) interface # ... here goes some other stuff, like sshd_enable="YES", etc gateway_enable="YES" firewall_enable="YES" firewall_quiet="YES" firewall_logging="YES" natd_enable="YES" natd_interface="ed1" natd_flags="-f /usr/local/etc/natd.conf" # cat /usr/local/etc/natd.conf same_ports yes use_sockets yes unregistered_only yes (also tried without these three lines) # ipfw show 65535 1546 115746 allow ip from any to any # sysctl -a | grep forward net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 1 Lan users still don't have internet... Any help would be appreciated.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001801c405f7$0c9e52e0$1e00a8c0>
