Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Freebsd Gateway/Router Problems

Status
Not open for further replies.

viaharo

IS-IT--Management
Apr 29, 2004
5
US
Just a quick question. Im building a 5 nic Freebsd 5.2 Gateway/Router. I have dhcp and all basic network functions running but no matter what i do i cant ping from the inside interfaces out through the Wan interface. Yet i can ping the Wan interface it self. If any one can enlighten me on my mistake i would greatly apreciate it. Here are my /etc/rc.conf
/etc/natd.conf.

Rc.conf
kern_securelevel_enable="NO"
moused_enable="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
hostname="Gateway.Friendly"
gateway_enable="YES"
firewall="YES"
firewall_type="/etc/ipfw.conf"
defaultrouter="192.168.0.1"
ifconfig_fxp0_alias0="inet 192.168.0.254 netmask 255.255.255.0"
ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0"
ifconfig_dc1="inet 172.16.0.1 netmask 255.255.255.0"
ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0"
#ifconfig_xl1=""
natd_program="/sbin/natd"
natd_enable="YES"
natd_interface="fxp0"
natd_flags="-f /etc/natd.conf"

Natd.conf

use_sockets yes
same_ports yes
interface fxp0

Also i have recompiled the kernel with IPFIREWALL, IPFILTER, IPDIVERT.

Thankyou
 
Update

It turnes out that i can ping directly through the Freebsd Gateway/router. From both the wan and the inside interfces but i cant ping the net. I must be doing things really wrong. Heres what i want to do

Wan port = interface fxp0
Inside ports = dc0, dc1, xl1, xl0

I want to have the inside interfaces behind the firewall and nated. I know i have the Wan set wrong but thats just for testing. When in place on my cable connection it will be ifconfig_fxp0="DHCP"

Could any one post some sample configs of a similar setup?
Thank's
 
Sorry one more thing. I am new to freebsd. I understand alot about it and have built several mail toasters with out a hitch. but creating the Gateway/Router seams to be getting me. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top