Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ipmasquarade

0 views
Skip to first unread message

Anton ml. Vaheie

unread,
Sep 30, 2001, 5:43:02 AM9/30/01
to
Can somebody tell me the shortest way how to masquerade on
linux server internal network (192.168.1.0) so that computer
will be able to browse (www) and ftp?

Anton, ml.


####
INTLAN="192.168.1.0/24"

ipchains -I forward -s $INTLAN -d 0.0.0.0/0 -j MASQ
ipchains -A forward -j MASQ -i ippp0

But that's will work only on internal segment segment, but not everything.

Any idea?

Anton, ml.


sh...@weboox.2y.net

unread,
Oct 10, 2001, 10:59:46 AM10/10/01
to
here is an exemple of script for masquerading ...

#############Start###################
echo Loading Masquerading rulez ...
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe -a ip_masq*

ipchains -F
ipchains -X
ipchains -P forward DENY
ipchains -A forward -s 192.168.1.0/24 -j MASQ
ipchains -A forward -s 192.168.1.0/255.255.255.0 -j MASQ
##############End of file#############
c ya
--
shiva
with best regards...
http://weboox.2y.net

0 new messages