LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-10-2009, 10:07 AM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
some firewall rule


Hi,

Doesn't this rule mean that anything coming to eth1 on port 600 should be redirected to port ssh of 192.168.2.110 ?

-A PREROUTING -i eth1 -p tcp -m tcp --dport 600 -j DNAT --to-destination 192.168.2.110:22

Am I correct ??
 
Old 02-10-2009, 10:13 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,500

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
what is the problem?
 
Old 02-10-2009, 10:30 AM   #3
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
no i just wanted to confirm that i interpreted correctly.. am i correct in what i understood ?

Quote:
Originally Posted by repo View Post
what is the problem?
 
Old 02-10-2009, 10:36 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,500

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
try this

Code:
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 600 -j DNAT --to-destination 192.168.2.110:22
 
  


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
Firewall-Rule Net_Spy Linux - Networking 4 11-20-2007 11:06 AM
firewall rule or host.allow Super7 Linux - Security 2 08-09-2006 04:58 PM
APF Firewall Rule Help embsupafly Linux - Security 1 03-08-2005 11:00 PM
is this firewall rule safe? melinda_sayang Linux - Security 1 12-21-2004 07:44 AM
Need A Firewall Rule linuxboy69 Linux - Software 1 11-26-2003 04:29 PM


All times are GMT -5. The time now is 05:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration