Google Answers Logo
View Question
 
Q: Help with a FreeBSD firewall ( No Answer,   0 Comments )
Question  
Subject: Help with a FreeBSD firewall
Category: Computers > Internet
Asked by: newhtinca-ga
List Price: $12.00
Posted: 26 Sep 2003 18:09 PDT
Expires: 30 Sep 2003 16:59 PDT
Question ID: 260648
I am having trouble setting up a firewall on my FreeBSD machine.  I've
followed the directions in the FreeBSD handbook, as well as several of
their HOWTO's, but with no luck.  Actually, I had this setup working
not more than a month ago, but it is now absolutely NOT working.  The
network I'm trying to setup is pretty simple and is wired like this:
Cable Modem ------ FreeBSD machine ------- laptop

The FreeBSD machine has two network cards, both active.  From the
FreeBSD machine I can get online quite nicely (I'm using it to type
this).  The FreeBSD machine can also ping and ssh to the laptop.  The
laptop can ssh and ping the FreeBSD machine, heck it can access the
BSD machine's NFS shares just fine, but can't get any further than
that.  Here's the relevent networking info:

The Laptop:  IP: 10.1.1.15  Subnet Mask:  255.0.0.0  Router:10.1.1.1
DNS 24.205.192.61

The FreeBSD machine:
1st ethernet card: sis0 (connected to the cablemodem):  IP:  received
through DHCP, Mask: 0xffffff00 DNS: same.
2nd ethernet card: rl0 (connected to laptop w/ crossover cable) IP:
10.1.1.1 Mask:  0xff000000

relevent /etc/rc.conf lines:

gateway_enable="YES"
hostname="my.hostname.com" #not my real hostname obviously
network_interfaces "lo0 sis0 rl0"
ifconfig_sis0="DHCP"
ifconfig_rl0="inet 10.1.1.1 netmask 255.0.0.0"
inetd_enable="YES"
firewall_enable="YES"
firewall_script="/etc/firewall/fwrules"
natd_enable="YES"
natd_interface="sis0"
natd_flags="-dynamic"

relevent /etc/firewall/fwrules lines.  There's only two.  I figure
I'll start w/ a wide open firewall until I get that working at least,
and then narrow down the ruleset

/sbin/ipfw -f flush
/sbin/ipfw add pass all from any to any

As for the kernel options, I assume I have the right options set
because, as I mentioned above, I had this firewall working before I
changed some config file, and I sure as heck didn't recompile my
kernel.

Thanks in advance for any and all help!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy