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
Solved

Slackware 10 IPTables How to forward ports.

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cron jobs 12 135
Need help in checking an rpm and install or uninstall it 3 83
Encrypted Laptop running Linux 3 127
awk file 6 78
Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

840 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