View previous topic :: View next topic |
Author |
Message |
neuron Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/d946e5263cf3dddd25d4e.gif)
Joined: 28 May 2002 Posts: 2371
|
Posted: Sun Mar 09, 2008 6:33 pm Post subject: iptables forwarding to local network |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
richard.scott Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Tue Mar 11, 2008 8:27 pm Post subject: |
|
|
your best bet may be to install and configure Shorewall.... you should be able to do this with that iptables manager. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neuron Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/d946e5263cf3dddd25d4e.gif)
Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Mar 12, 2008 8:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|