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

newbee -- route (in file ?) ipchains ( in file ?)

hello, i have several questions actually

* where should i put rules like these to load them when i Boot or should i
wright a script ( <--scripting howto ??)  ? ;

/sbin/ifconfig eth0 <isp_ip_here> netmask
/sbin/ifconfig eth1 netmask

/sbin/route add default gw <isp_gw_here>  netmask metric 1

* Should i add also these or is that automatically generated ?

sbin/route add -net netmask eth1

* and where should i put these?

# Ipchains   28-12-2000
# erase all old rules
/sbin/ipchains -F

# deny everything
/sbin/ipchains -P  forward deny

# local netwerk
/sbin/ipchains -A forward -s -j MASQ
/sbin/ipchains -A forward -p TCP -d 2000:2200 -j MASQ

# Icq port
/sbin/ipchains -A forward -p UDP -d 4000 -j MASQ

# "enables" Ftp e.d
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_vdolive

the problem is that almost all how-to`s are RH orientated so i usually now
how its done in red hat but not in Debian ( i have 2.2 kernel 2.2.17). I
have 2 pc`s ;1 linux, 1 win98  connected with a crosslink cable. Information
i used comes from linuxmagazine ( dutch, and author uses slackware) , some
websites and ipchains, home network howtos.

thanks mb

Reply to: