Converting ipchains rules to ipfilter, please!

Converting ipchains rules to ipfilter, please!

Post by Raqueeb Hass » Fri, 14 Jun 2002 14:58:29



Hello Ipfilter gurus!

I know this request is pretty lame, (i gotta read those RTFM, man page
etc,
etc) but I want to convert my firewall settings (as i'm moving to
sparc, sol 8 ipfilter .....). I've been using ipchains for couple of
years, now, its time to upgrade ... what do you think?

my current ipchains rules are closer to these rules .... i want to
change this up to ipfilter .... can anyone help me out, please?

# my Interface to Internet, using dynamic ip
EXTIF=ppp0

ANY=0.0.0.0/0

# assigning and flushing my old rules

ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward DENY

ipchains -F forward
ipchains -F input
ipchains -F output

# Deny TCP and UDP packets to privileged ports
ipchains -A input -l -i $EXTIF -d $ANY 0:1023 -p udp -j DENY
ipchains -A input -l -i $EXTIF -d $ANY 0:1023 -p tcp -j DENY

# Deny TCP connection attempts

ipchains -A input -l -i $EXTIF -p tcp -y -j DENY

# Deny ICMP echo-requests

ipchains -A input -l -i $EXTIF -s $ANY echo-request -p icmp -j DENY

# Do masquerading to these ip's

ipchains -A forward -i $EXTIF -s 192.168.x.11 -j MASQ
ipchains -A forward -i $EXTIF -s 192.168.x.12 -j MASQ
ipchains -A forward -i $EXTIF -s 192.168.x.10 -j MASQ
ipchains -A forward -i $EXTIF -s 192.168.x.15 -j MASQ

# packet forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward

Thanks in advance!

cheers

raqueeb hasssan
bangladesh

 
 
 

Converting ipchains rules to ipfilter, please!

Post by Kevin R. Pace » Sat, 15 Jun 2002 00:55:30



> Hello Ipfilter gurus!

> I know this request is pretty lame, (i gotta read those RTFM, man page
> etc,
> etc) but I want to convert my firewall settings (as i'm moving to
> sparc, sol 8 ipfilter .....). I've been using ipchains for couple of
> years, now, its time to upgrade ... what do you think?

You might want to post to comp.security.firewalls
-krp

 
 
 

Converting ipchains rules to ipfilter, please!

Post by Raqueeb Hass » Sun, 16 Jun 2002 13:39:44


thanks for the tips :)

raqueeb

 
 
 

1. Converting ipchains rules to iptables rules?

Is there any convenient script available to convert ipchains rules
to iptables rules?

I am migrating my lab server (that runs linux 2.2.19/ipchains) to a
new server that runs linux 2.4.7.  The old server has a list of
ipchains rules that have worked quite well, and I would like the
new server to have these rules as well.  I realize I can use the
2.4.7 ipchains module and the old rules, but I would rather convert
to iptables, even if the conversion will be initially painful.

Thanks!
Ashok

2. Redialing PPP but noipdefault

3. Converting ipchains rules to iptables, please!

4. IP routing through two ethernet cards

5. Converting ipchains rules to iptables!

6. Shell script question

7. Please help me with my IPChains rules...

8. More Cyls > 1024 questions

9. please check ipchain rule

10. ipfilter rule set..?

11. ipfilter why does moving a rule break it?

12. ipfilter rule set

13. ipfiltering rules problem