niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Configuration
Converting iptables to ipfw
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Andras Got
*nix forums beginner


Joined: 06 Feb 2004
Posts: 5

PostPosted: Tue Mar 02, 2004 5:20 pm    Post subject: Re: Converting iptables to ipfw Reply with quote

Hi!

All the below mentioned works. I think you should use ipf for packet
filtering, and ipnat for NAT.

For /etc/ipnat.rules, the basic is:
map $inet_iface $lan_mask -> 0/32
$lan_mask= x.x.x.x/y (netmask)

For /etc/ipf.rules:
http://www.obfuscation.org/ipf/ipf-howto.html

With many examples and tricks also.

Andrej

Sasa Stupar wrote:

Quote:
Hi!

I am thinking to change my old linux router to the freebsd one. The
question is: how difficult is to convert iptables into ipfw rules?
I need some basic things with that router:
- internet gateway for LAN users
- packet filtering with MAC/IP address filtering
- port forwarding
- NAT onto same network so that LAN users can access web server which is
on the LAN also

Is this all possible with ipfw?

Regards,
Sasa
_______________________________________________
freebsd-config@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-config
To unsubscribe, send any mail to "freebsd-config-unsubscribe@freebsd.org"

_______________________________________________

freebsd-config@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-config
To unsubscribe, send any mail to "freebsd-config-unsubscribe@freebsd.org"
Back to top
Sasa Stupar
*nix forums beginner


Joined: 02 Mar 2004
Posts: 4

PostPosted: Tue Mar 02, 2004 5:00 pm    Post subject: Converting iptables to ipfw Reply with quote

Hi!

I am thinking to change my old linux router to the freebsd one. The
question is: how difficult is to convert iptables into ipfw rules?
I need some basic things with that router:
- internet gateway for LAN users
- packet filtering with MAC/IP address filtering
- port forwarding
- NAT onto same network so that LAN users can access web server which is
on the LAN also

Is this all possible with ipfw?

Regards,
Sasa
_______________________________________________
freebsd-config@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-config
To unsubscribe, send any mail to "freebsd-config-unsubscribe@freebsd.org"
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 9:54 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Configuration
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts IPtables front end Stephen Allen Debian 13 Thu Jul 20, 2006 1:30 pm
No new posts converting array values to monomaniac21 PHP 11 Thu Jul 20, 2006 10:17 am
No new posts ipfw log sam FreeBSD 2 Thu Jul 20, 2006 2:51 am
No new posts Local forwarding with "iptables" gives "invalid arguments" newsfuzzy@geekmail.de networking 0 Wed Jul 19, 2006 2:47 pm
No new posts Converting a web to pdf or ..‍ Bayazee python 2 Wed Jul 19, 2006 12:47 pm

Problem Mortgage | Buy Anything On eBay | Debt Consolidation | Debt Consolidation | Air Jordans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1338s ][ Queries: 20 (0.0593s) ][ GZIP on - Debug on ]