Solved

Slackware 10 IPTables How to forward ports.

Posted on 2004-09-11
4
1,538 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
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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