Click to See Complete Forum and Search --> : IP Masq Advise


latour
10-31-2000, 11:01 AM
Hi all,
i have setup IP masq with a few Windows platform PCs.

My setup

eth0: static ip from ISP
eth1: 192.168.0.1/255.255.255.0

my rc.firewall:
/sbin/ipchains -P forward DENY
/sbin/ipchains -A 192.168.0.0/24 -j MASQ

Setup the clients with 192.168.0.2-5/24, gateway 192.168.0.1

It works...runs like a horse.

When i change the ip to anther range for both server and clients. IP Masq doesnt work

Changes i made:

eth0: static ip from ISP
eth1: 192.168.132.1/255.255.255.0

my rc.firewall:
/sbin/ipchains -P forward DENY
/sbin/ipchains -A 192.168.132.0/24 -j MASQ

then change the clients to ips 192.168.132.2-5/255.255.255.0, gateway 192.168.132.1

no luck from the above configuartion. Changed back to the first configuration and it works again.

Is my ip addressing(netmask...etc)wrong? Pls advise

thank you

ep0k
10-31-2000, 07:09 PM
From Looking at it it doesn't look like your netmask is wrong or anything.. It's class C and that's right if you start with 192. well in the first example you use.

192.168.0.2-5/24 ...

in the second you use

192.168.132.2-5/255.255.255.0

now i know that technicaly the "/24" and the "255.255.255.0" mean the same thing just like "/16" and "255.255.0.0" but would it have to be typed verbatim when setting this up? Just an Idea... The only thing other than that that I can offer is maybe you need to HUP your inetd..

g'luck
-ep0k