Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-19-2009, 08:31 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Allowing certain ports and port forwarding without messing up current config


I've been thrown into the deep end in my company and am eager to learn Linux Administration and the ins and outs around hosting websites on my Linux box.

The first question I have is: How do I open ports 2082 and 2095 without messing up any of the current settings and how secure are these ports (what is the most secure way to set these up?)
I found a command on this post: /linux-security-4/firewall-blocking-cpanel-login-324429/

iptables -A INPUT -i eth0 -m tcp -p tcp -dport 2082 -j ACCEPT
Is this correct? Let's say eth0 was wrong and I should have used eth1 how do I remove that previous command without messing anything up?

The second question is: I need to setup remote desktop connection to one of our other servers, is this the correct command to use?

iptables -t nat -A PREROUTING -p tcp --dport 3389 -i eth0 \
-j DNAT --to

The Linux box was setup in a way to prevent people from sending spam from our server (static ip), so only the server can send mail. This is why I don't want to mess it up.

Thank you so much for your time!
Old 01-19-2009, 08:35 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79

-D command deletes a rule added with -A
Old 01-19-2009, 02:14 PM   #3
LQ Newbie
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
appreciate it

Thank you for the link Agrouf. I sure have a lot of reading to do... the main thing is to actually understand what I am reading. Great to have this Forum to search for answers and solutions.

Thanks for the tip.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
allowing traffic in some ports igordonin Linux - Networking 10 12-11-2006 09:46 AM
Port Forwarding some ports works some don't Sarcha Linux - Networking 2 07-22-2005 05:03 PM
blocking and allowing ports drumlix18 Linux - Networking 4 11-30-2004 07:36 PM
Allowing Data on Certain Ports bob4432 Linux - Networking 2 07-20-2004 02:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration