/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
>/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
>*/
>
>
> I have setup IPMASQ and it works great. Im setting up port
>forwarding for an internal webserver. It worked the first time i started
>it up but after i rebooted the machine it no longer works. The port is
>not being used by anything else nor is the internal server down. the way
>i have it setup is this. .
>
> ipchains -F
>
> ipchains -p forward deny
>
> ipchains -A forward -s 192.168.0.2/24 -j MASQ
>
> /usr/sbin/ipmasqadm ipportfw -f
>
> ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 1000 -R 192.168.0.2
>80
If you want the internal server to be accessible from the outside, try
these lines in your script:
ipchains -F forward
ipcahins -P forward MASQ
ipmasqadm portfw -f
ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 1000 -R 192.168.0.2
80
As you can see, you don't get the security of only being able to masq out,
but I've found that this is the only way to do it. Portfw only works when
masqing is turned on for both directions. Also, I've found that the
"ipmasqadm ipportfw -f" command doesn't work the way it is supposed to,
and had to change it to "ipmasqadm portfw -f" instead. See if this helps
at all, and let me know what happens.
C.
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.