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 255.255.255.0
/sbin/ifconfig eth1 10.10.10.1 netmask 255.255.255.0
/sbin/route add default gw <isp_gw_here> netmask 0.0.0.0 metric 1
* Should i add also these or is that automatically generated ?
sbin/route add -net 10.10.10.0 netmask 255.255.255.0 eth1
etc.
----
* 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 10.10.10.0/24 -j MASQ
/sbin/ipchains -A forward -p TCP -d 10.10.10.0/24 2000:2200 -j MASQ
# Icq port
/sbin/ipchains -A forward -p UDP -d 10.10.10.0/24 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: