Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suse firewall - port forwarding

Status
Not open for further replies.

djr111

Technical User
Aug 5, 2006
357
US
Hi,

I'm not really sure if I am doing this right, I need to forward port 80 to a non privileged port 8080

I tried:

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

I also tried

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

neither seem to do anything,

any help would be appreciative

thanks
 
why not use iptables to redirect?

Code:
iptables -t nat -A PREROUTING -i your_external_interface -p tcp --dport 80 -j DNAT --to-destination 10.25.223.11:8080

or if you just need port forwarding

Code:
iptables -t nat -A PREROUTING -i your_external_interface -p tcp --dport 80 -j REDIRECT --to-port 8080

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
im not too familiar with them, the one time I used it, it did not seem to keep the config across reboots, is there something that needs to be done to make it permanent, even after reboots.

thanks
 
you must issue a

Code:
service iptables save


Anyway, if that does not work you can use the iptables-save redirecting the output to the iptables config file which in RedHat is normally /etc/sysconfig/iptables and it shoudl be the same in Suse.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top