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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
kaskhedikar_tusharCommented:
Hello,

Perhaps this may help you.

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

Regards,
Tushar Kaskhedikar
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bbunny128Author Commented:
thank you i can use google, i need my solution
0
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.