Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FireHOL: port redirection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 184

PostPosted: Fri May 04, 2012 11:24 am    Post subject: FireHOL: port redirection Reply with quote

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
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 7616

PostPosted: Fri May 04, 2012 10:28 pm    Post subject: Reply with quote

Please show the netfilter rules, rather than the configuration file that was used to generate them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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