LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 05-01-2003, 12:32 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Ipfw rule


Being a newbie to firewalls, I added a rule to ipfw ruleset, first just to measure dns traffic:

400 allow udp from xxx.xxx.x.xx 53 to any in via ed0

(the IP address is that of our IPS's primary dns server)

ipfw -a l, however showed no traffic for that rule, as if there were no udp packages coming in from our isp's dns server.

The server is an internet gateway configured according to the example described in the FreeBSD handbook to share one IP address for a whole LAN:
- NAT is enabled, and
- ipfw is in 'OPEN' mode.

Is it NAT that mangles things, or my rule is faulty?
Is it at all possible to apply more strict firewall rules when NAT is used on the same server?

Last edited by J_Szucs; 05-02-2003 at 01:41 AM.
 
Old 05-03-2003, 09:29 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
It turned out that our new ISP's dns servers do not work yet.
I did not realize this, because I was in the misbelief that we could not browse the net then.
So, being a newbie to firewalls, I blamed my ruleset for days before trying just to ping the servers.
By the way: how can we browse the net when all the dns servers given in resolv.conf are out of service?

As concerns the firewall, after some days of efforts reading through the freebsd, ipfw, nat manuals and google searching the web, I could somehow grasp how nat and ipfw work together.
It took quite long until I found it in the nat manual, that nat, being usually in front of the ruleset, does its job on the IP package, then gives it back to ipfw to check the remaining rules on the modified package.

Finding this in the manuals finally, I could setup our internet firewall on my own.
It works well, so am quite satisfied with it (default deny, just allowing in the services used, allowing everything out, making use of ipfw advance stateful conf).

Thank your for you attention, if any.

Last edited by J_Szucs; 05-03-2003 at 09:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipfw ruleset h9000 *BSD 2 04-10-2009 10:37 AM
portforwarding using ipfw thar Linux - Networking 1 08-15-2005 06:38 PM
IPFW rules ryancoolest *BSD 5 02-19-2004 02:03 AM
ipfw tutorial needed duerra *BSD 2 01-26-2004 10:18 AM
IPFW gateway firewall Reme *BSD 1 10-30-2003 09:29 PM


All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration