Solved

Slackware 10 IPTables How to forward ports.

Posted on 2004-09-11
4
1,547 Views
Last Modified: 2013-12-05
Hello,
I'm sure there is an easy way to do this, but i am confused on the iptables concept.  I currently have the Internet WAN port on eth3 on the Slackware Box.  Eth1 is connected to our internal network.  I want to forward the port 3389 so that a connection can come in through eth3 (WAN Port), then go to eth1 to the ip address 192.168.8.4.  Please help!
0
Comment
Question by:star3132
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
gottin earned 250 total points
ID: 12037442
If you have a setup connection between your slackware and 192.168.8.4 - all you need is:
1) Start iptables.
2) #iptables -t nat -A PREROUTING --in-interface eth3 -p tcp --dport 3389 -j DNAT --to-destination 192.168.8.4
3) Save iptables and if everything works - just have fun

by "-p" you spacifie what protocol to match. If the service is udp -> use "-p udp"

Good Luck
0
 
LVL 5

Expert Comment

by:cgrey
ID: 12056788
Dang. An easy question and somebody beat me to it. =)
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question