Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables forwarding to local network
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
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sun Mar 09, 2008 6:33 pm    Post subject: iptables forwarding to local network Reply with quote

I have a piece of (crap) custom server software I'm trying to work with, I'm using it through wine as it's a windows only piece of software. It screws up in wine and fails to detect my network cards, and as a result of that ends up listening on only 127.0.0.1..

Is there anyway I can with iptables forward a port incoming on eth1 to localhost?

I know I can do it with ssh but it's a bit less practical.

//edit, found out this isn't technically possible, the kernel will drop stuff going to 127.0.0.1, BUT, I toyed with my hosts file and now the program listens to 192.168.0.1, which is still the wrong ip, but atleast should be possible to forward to. My goal now is forwarding from eth1 to 192.168.0.1
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue Mar 11, 2008 8:27 pm    Post subject: Reply with quote

your best bet may be to install and configure Shorewall.... you should be able to do this with that iptables manager.
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Wed Mar 12, 2008 8:43 am    Post subject: Reply with quote

richard.scott wrote:
your best bet may be to install and configure Shorewall.... you should be able to do this with that iptables manager.


shorewall is just a frontend for iptables though, should be able to do it directly.

Either way I've come up with a workaround now, figure that can stay in place until I get some linux software to replace it with.
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