Solved

Slackware 10 IPTables How to forward ports.

Posted on 2004-09-11
4
1,513 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
Comment Utility
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
Comment Utility
Dang. An easy question and somebody beat me to it. =)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now