LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 08-06-2020, 05:12 AM   #1
rama12345
LQ Newbie
 
Registered: Aug 2020
Posts: 7

Rep: Reputation: Disabled
The IP Address of The Attacker is not Detected in the Honeypot After Being Forwarded


I have a problem with my project. My project is how to deflect the attacker to the honeypot. I tried using the IPTables to forward any IP Address that want to access the protected network to the honeypot IP Address..

In this case I have 3 IP Address..
a. 192.168.43.42 --> It's a Honeypot
b. 192.168.43.216 --> It's a Protected Network/System
c. 192.168.43.156 --> It's a Attacker

I tried to configure the IPTables like this..
The honeypot that I used is a Kippo SSH. That's why the port is 22


(This command is implented in the protected system --> 192.168.43.216)


# echo "1" > /proc/sys/net/ipv4/ip_forward

# iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination 192.168.43.42

# iptables -t nat -A POSTROUTING -j MASQUERADE



After I tried that, the honeypot can detect the attacker!

But, the IP Address that are detected in the honeypot is the IP Address of the Protected System, not the IP Address of the Attackers. It looks like the protected system is attacking itself ..

Do you know how to show the IP Address of the Attackers? not the IP Address that has the Firewall (Protected System)..

Thank you!```
 
Old 08-12-2020, 08:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,797

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Read the LQ Rules; don't post the same question multiple times. Thread reported.
https://www.linuxquestions.org/quest...ed-4175679985/
 
  


Closed Thread



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
How to Keep The Original IP Address After Being Forwarded? rama12345 Linux - Security 1 08-07-2020 06:27 AM
The IP Address of The Attacker is not Detected in the Honeypot After Being Forwarded rama12345 Linux - Security 6 08-07-2020 04:04 AM
LXer: Honeypot Tutorials : Modes and Working of Honeypot LXer Syndicated Linux News 0 07-08-2013 05:20 AM
mac address being forwarded in redhat? meeble Linux - Networking 4 09-11-2004 01:13 PM

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

All times are GMT -5. The time now is 10:31 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