Howto configure openSuSE firewall to route local traffic to local ports

Posted by Eduard Wirch on Server Fault See other posts from Server Fault or by Eduard Wirch
Published on 2011-01-10T10:49:38Z Indexed on 2011/01/10 10:54 UTC
Read the original article Hit count: 344

I have openSUSE 11.3 installed. I'm using the openSUSE firewall configuration mechanism (/etc/sysconfig/SuSEfirewall2). I have a http server application running on port 8080. I want the http service to be accessible using port 80. I created a redirect rule usign:

FW_REDIRECT="0/0,0/0,tcp,80,8080"

This works fine for every request coming from external. But it doesn't for local requests. (example: wget http://myserver/)

Is there a way how I can tell the firewall to redirect local requests addressed for 80 to port 8080? (using the SUSE firewall configuration file)

© Server Fault or respective owner

Related posts about firewall

Related posts about redirect