Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
My laptop as a router/modem
Suppose my system (192.168.1.100) is in a LAN. In the LAN there are 2 other systems (192.168.1.101 as a system & 192.168.1.1 as a modem).
In my project, I need to route the packet between 192.168.1.101 & 192.168.1.1. Note that I can receive packets that there destinations are 192.168.1.101 or 192.168.1.1.
How to do?
Is there any registry value or sth like this to do?
Thanks a lot.
ChrisW67 last edited by
A LAN with three devices on those addresses would typically have a network mask that permitted 192.168.1.1 and 192.168.1.101 to talk to each other directly: no routing required. Unless you have an atypical network and your system is multi-homed, i.e. multiple network interfaces on different networks, then it will not be a router.
What exactly are you trying to do? Why does it have anything to do with Qt?
Hello dear ChrisW67.
Thanks for your response.
I have a project. In this project, I must be a Man In The Middle!
I can receive the packet that destined to 192.168.1.1 or 192.168.1.101.
In other words, I want to create an application like as cain & abel using Qt.
hskoglund last edited by
Hi, you use the same technique that Cain and Abel does on your LAN (or viruses for Xbox or PC do) it's called "ARP Spoofing":http://en.wikipedia.org/wiki/ARP_spoofing
Hi dear hskoglund.
Yes. I can receive packets from 192.168.1.1 that is destined to 192.168.1.101 & vice versa. But I dont know how to roue this packets that everything appears normal for 2 victim systems.
(Excuse my English writing is not good)