Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables: Forward request of (port a) to (port b) same box
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
Xanadu
Guru
Guru


Joined: 10 Oct 2002
Posts: 335
Location: Hour West of Philly (USA)

PostPosted: Wed Jan 21, 2009 2:42 am    Post subject: iptables: Forward request of (port a) to (port b) same box Reply with quote

Hey!

Here's what I'm trying to do and am having a serious brain fart at the moment... :oops:

I have a machine that has Apache on it on a Fiber Line that gets it's IP from the ISP via DHCP. The ISP blocks TCP --> port 80 (like most do). I have Apache running on a high number port 23654 and have the router forward traffic to that. *BUT* internally, that's a pain. Can I have IOP tables forward requests of port 80 --> 23654 on that machine?

Am I making sense or am I digging myself deeper by not even explaining it right?

Internet:23654 --> Router --> Gimli:23654
Internal:80 --> Gimli:80 --> Gimli:23654

Can that work?
_________________
I'm not a prophet or a stone-age man
I'm just a mortal with potential of a super man

-David Bowie
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23082

PostPosted: Wed Jan 21, 2009 4:04 am    Post subject: Reply with quote

This should be possible using either the REDIRECT or DNAT targets.
Back to top
View user's profile Send private message
Xanadu
Guru
Guru


Joined: 10 Oct 2002
Posts: 335
Location: Hour West of Philly (USA)

PostPosted: Wed Jan 21, 2009 11:07 am    Post subject: Reply with quote

Hu wrote:
This should be possible using either the REDIRECT or DNAT targets.


I was playing with DNAT and FORWARD, but I didn't get far enough before preparing for the computer's first flight down a driveway and under the wheel of one of the salt trucks coming through to get to REDIRECT (I'm trying to quit smoking...).

Thanks, man. I'll give that a shot then. :)
_________________
I'm not a prophet or a stone-age man
I'm just a mortal with potential of a super man

-David Bowie
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