LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi

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 192.168.50.100:3389


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, 07:35 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
http://iptables-tutorial.frozentux.n...-tutorial.html

-D command deletes a rule added with -A
 
Old 01-19-2009, 01:14 PM   #3
media-c
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.
 
  


Reply


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 07:35 PM
allowing traffic in some ports igordonin Linux - Networking 10 12-11-2006 08:46 AM
Port Forwarding some ports works some don't Sarcha Linux - Networking 2 07-22-2005 04:03 PM
blocking and allowing ports drumlix18 Linux - Networking 4 11-30-2004 06:36 PM
Allowing Data on Certain Ports bob4432 Linux - Networking 2 07-20-2004 01:30 PM


All times are GMT -5. The time now is 03:26 PM.

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