| View previous topic :: View next topic |
| Author |
Message |
acarstoiu Apprentice

Joined: 20 Oct 2004 Posts: 184
|
Posted: Fri May 04, 2012 11:24 am Post subject: FireHOL: port redirection |
|
|
Hello,
I can't seem to have gotten what exactly is needed to have simple local port redirection work...
Here is a configuration meant to forward any incoming request on eth0, port 80 to port 8080:
| Code: | redirect to 8080 inface eth0 proto tcp dport 80
interface eth0 others
policy drop
server ssh accept
server ident reject with tcp-reset
server icmp accept
server custom tomcat tcp/8080 default accept
server http accept #this line should be unneeded
client all accept |
But accessing an URL like http://<my_eth0_IP>/<some_path> produces a "server connection refused" result, which indicates that the firewall allowed the packets to reach my machine, but there is no server listening (and trust me, there is, I can access it via localhost:8080).
Does anyone have actual experience with this trivial thing?
Thank you. |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 7616
|
Posted: Fri May 04, 2012 10:28 pm Post subject: |
|
|
| Please show the netfilter rules, rather than the configuration file that was used to generate them. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|