Debian port forwarding

Hi All.I need to forward ports from windows machines in my local network.Which rules i need to input in debian iptables?
data: server 192.168.1.1
windows subnet 192.168.1.255
from 192.168.1.5:8080 to 192.168.1.1:8081
bbunny128Asked:
Who is Participating?
 
kaskhedikar_tusharCommented:
Hello,

Perhaps this may help you.

http://www.debian-administration.org/articles/73

Regards,
Tushar Kaskhedikar
0
 
yarwellCommented:
not following......

windows clients 192.168.1.x will try to access a web server on 192.168.1.5:8080 and would want instead 192.168.1.1 to reply on port 192.168.1.1:8081 ?

is 192.168.1.1 the default gateway for the windows clients ?

is 192.168.1.5 still present ?
0
 
bbunny128Author Commented:
thank you i can use google, i need my solution
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bbunny128Author Commented:
from windows 192.168.1.5:8080 to deb server 192.168.1.1:8081
0
 
yarwellCommented:
and the other two parts of my question ?
0
 
bbunny128Author Commented:
wan--->deb--->win:8080. setting i have show upper.
0
 
yarwellCommented:
if the web server 192.168.1.5:8080 to the right of the deb machine on your diagram, or is it no longer present. Are the windows clients also on the LAN to the right of deb ?

sorry for being a bit dim but I can't picture it yet
0
 
mccrackyCommented:
If all your machines are on the same subnet why are you forwarding the requests?  The packets don't pass through a router on a local subnet so you won't be able to "forward" your packets.  

If one machine is no longer there, you can put the IP as an alias on the other machine.

If it is a webserver, you might be able to put in a redirect.  

It is still not clear.

1. Where are clients now pointing and where do you really want them to go?  
2. Is the old server still there?
3. What service are they trying to reach?
0
 
bbunny128Author Commented:
:D all easy men! from global go to debian:8080 and  forwarding to win machine: 8081

server 192.168.1.1
windows subnet 192.168.1.255
from 192.168.1.1:8080 to 192.168.1.5:8081
0
 
yarwellCommented:
clear as mud.

Clients are on internet or on LAN ?

192.168.1.5 exists or not ? is a server ?

Debian is router with WAN IP ?

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.