[lug] ipchains & port forwarding

Warren Sanders sanders at montanalinux.org
Thu Sep 5 02:52:50 MDT 2002


Jeff wrote:
Can some guru help me make sure that I have my
> rule set correctly?  

Not gonna say I'm a guru by any means... as-needed hacker maybe? :)

> 
> IPCHAINS -A input -p tcp -s $REMOTENET -d InternalMachineName 1718:1820
> -j ACCEPT -l
> 

Not knowing what ports are needed, but by your script it might look like the 
range 1718-1820 assuming you already know those are the ports needed for your 
app.  I did something similar in the past with DialPad.com.  I didn't need quite 
the range of ports though.

# This allows access with DialPad
/usr/sbin/ipmasqadm autofw -A -v -r upd 51200 51201 -c tcp 7175
/usr/sbin/ipmasqadm autofw -A -v -r tcp 51210 51210 -c tcp 7175

Plug your values there and see if it works; good luck.


> Any help is appreciated.  Thanks!
> 
> Jeff


-- 
Warren Sanders
http://MontanaLinux.Org

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/CM d(d-) s: a c+++@ UL++++$ P+>++ L+++@ E---- W++(+++) N++(+) !o K? !w !O- 
!M@ V-- PS---(--) PE+ Y+ PGP@ !t(-) !5- !X++@ R- tv+>- b+>++ DI++@ D G e+>++ 
h----@ r+++ y++++@
------END GEEK CODE BLOCK------





More information about the LUG mailing list