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

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



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


Reply to: