[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ipfwadm -> ipchains conversion syntax help 2.0.x -> 2.2.x



You can use the ipfwadm wrapper script and continue using your ipfwadm
style of rules if you like.




On Mon, 21 Feb 2000, Anthony Green wrote:

> Hello .. 
> 
> Im about to go from kernel 2.0.38 to 2.2.x
> 
> I have some syntax questions with regards to ipchains .. and have
> included below my existing IP setup in init.d/network and some
> local settings .. 
> 
> If someone could let me know the ipchains syntax .. that'd be great.
> 
> Current net config .. with ipfwadm setup .. simple enough setup,
> linux box in 10.1.1.1 with win box on 10.1.1.2 .. linux acting
> as gateway with static IP, and masq'ing for the win box.
> 
> root@GiGzBoX:/local/etc/init.d# cat network
> #! /bin/sh
> ifconfig lo 127.0.0.1
> route add -net 127.0.0.0
> IPADDR=10.1.1.1
> NETMASK=255.255.255.0
> NETWORK=10.1.1.0
> BROADCAST=10.1.1.255
> GATEWAY=
> ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
> ifconfig ppp0 203.12.80.117 netmask 255.255.255.0 mtu 576
> #ipfwadm stuff
> ipfwadm -F -p deny
> ipfwadm -F -a m -S 10.1.1.2/32 -D 0.0.0.0/0 -W eth0
> ipfwadm -A -a -S 10.1.1.2/32 -D 0.0.0.0/0 -W eth0
> ipfwadm -F -a m -S 10.1.1.0/24 -D 0.0.0.0/0 -W ppp0
> # end ipfwadm
> route add -net ${NETWORK}
> [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
> 
> I am after the equiv. ipchains syntax for the above ipfwadm statements.
> 
> Also .. I use ipautofw port bouncer to bounce a port for battle.net etc,
> im sure some ipchains syntax can do the same?
> 
> root@GiGzBoX:/etc/init.d# cat local 
> #rc.local
> #Battle.net fix
> echo "Adding Battle.net port bouncer"
> ipautofw -A -r udp 6112 6112 -h 10.1.1.2
> ipautofw -A -r tcp 6112 6112 -h 10.1.1.2
> /sbin/modprobe ip_masq_ftp
> /sbin/modprobe ip_masq_quake
> /sbin/modprobe ip_masq_raudio
> 
> Ive read the rls notes and other docs on the 2.2.x series .. there
> doesnt look to be anything else major I need to be aware of ? What
> has other peoples experience been?
> 
> Thanks in advance.
> 
> -- 
> anthonyg@orangemail.com.au
> Anthony Green
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 
> 

George Bonser

"When someone annoys you, it takes 32 muscles to frown, but it only
takes 4 muscles to extend your arm and smack them in the head."



Reply to: