Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 22:33:44 -0500
From:      Constantine <cnst@rbcmail.ru>
To:        freebsd-questions@FreeBSD.org
Subject:   FreeBSD gateway
Message-ID:  <3DDB0298.8070503@rbcmail.ru>

next in thread | raw e-mail | index | archive | help
Hello!
I have installed FreeBSD 4.7 recently, and it seems it does not want to 
work as a gateway. I have two network cards in my FreeBSD computer, fxp0 
for LAN and sis0 for the cable modem. I am new to FreeBSD, so I am 
confused what the difference between gateways and routers is (I was 
thinking they link to the same thing). I can ping my FreeBSD box from 
winxp, I can ping internet from remote session to FreeBSD, but I cannot 
ping internet from my winxp.
My winxp has ip 192.168.0.1, netmask 255.255.255.0, and gateway 
192.168.0.18 settings. Now FreeBSD /etc/rc.conf follows:

gateway_enable="YES"
kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
ifconfig_sis0="DHCP"
ifconfig_fxp0="inet 192.168.0.18  netmask 255.255.255.0"
#router_enable="YES"
# from handbook
gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="sis0"
natd_flags=""
#/ handbook

The last two lines from dmesg:
IP packet filtering initialized, divert disabled, rule-based forwarding 
enabled, default to deny, logging disabled
ip_fw_ctl: invalid command

%netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            68.105.xxx.x       UGSc        2        0   sis0
68.105.xxx/24      link#1             UC          1        0   sis0
68.105.xxx.x       00:03:xx:xx:xx:xx  UHLW        3        0   sis0   1197
68.105.xxx.xxx     127.0.0.1          UGHS        0        0    lo0
127.0.0.1          127.0.0.1          UH          1        0    lo0
192.168.0          link#2             UC          1        0   fxp0
192.168.0.1        00:04:xx:xx:xx:xx  UHLW        3    28742   fxp0   1005

Thank you!

--
Constantine


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?3DDB0298.8070503>