?
Solved

Slackware 10 IPTables How to forward ports.

Posted on 2004-09-11
4
Medium Priority
?
1,558 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 1000 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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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…
Suggested Courses

765 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