LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-24-2003, 03:03 AM   #1
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
iptables -j MIRROR


well, i was trying tu understand how this works, and this is what i have figured out so far:

if a bad IP is trying to connect to my host using ssh :
ssh
192.168.0.1 -----------------------> 192.168.0.10
bad IP server

then the -j MIRROR wil do the folowing:

mirror
192.168.0.1 -----------------> 192.168.0.1
and so becose the bad ip does not have a sshd server i will get a canot connect statement.

Well i want to know if i am right, and if not why

THX in advanced

Last edited by sqn; 11-24-2003 at 03:06 AM.
 
Old 11-24-2003, 05:22 AM   #2
MrGreg
Member
 
Registered: Apr 2001
Location: Hamilton
Distribution: RedHat 7.2, 9.0
Posts: 52

Rep: Reputation: 15
The MIRROR target switches IP addressess and src/dst ports and retransmits the packets. What you said should be true.
 
Old 11-24-2003, 09:46 AM   #3
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Original Poster
Rep: Reputation: 30
Smile

so the rule for setting it up is:

iptables -A input -s 192.168.0.1 -p tcp -d 192.168.0.10 --dport 22 -j MIRROR

OK
thx in again...
 
  


Reply



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
iptables LOG on a Switch Mirror Port Master_D Linux - Networking 0 09-06-2004 04:33 AM
mirror BRAHmS Linux - General 1 05-08-2004 07:31 PM
setting up a mirror? andrewlkho Slackware 5 10-09-2003 02:32 PM
How to Mirror HD? sikandar Linux - Software 4 08-25-2003 11:16 AM
iptables w/ mirror problem steppin_razor Linux - Security 6 01-09-2003 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:01 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
Open Source Consulting | Domain Registration