There is always iptables (on Linux) to the rescue! As root, add the
following rules to /etc/sysconfig/iptables:

In the *nat section (between "*nat" and "COMMIT" lines):

Code:
--------------------
    
  # port-forward SlimServer
  -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination :9000
--------------------


Don't forget to allow incoming connections to port 80, as well as
default port 9000!

In the *filter section (between "*filter" and "COMMIT" lines):

Code:
--------------------
    
  # allow SlimServer
  -A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 80 -j ACCEPT
  -A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 9000 -j ACCEPT
--------------------


where 10.0.0.0/8 is your LAN subnet, or whatever you choose.


-- 
scratchy
------------------------------------------------------------------------
scratchy's Profile: http://forums.slimdevices.com/member.php?userid=5236
View this thread: http://forums.slimdevices.com/showthread.php?t=35483

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to