| |

VerySource

 Forgot password?
 Register
Search
View: 814|Reply: 2

Packet forwarding problem

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

Post time: 2020-1-9 18:00:02
| Show all posts |Read mode
I want to write a program, by disguising my computer as a gateway, so that all other computers in the local area network can send data packets to my computer. I monitor these data packets, and if I want to prevent a machine from accessing the Internet, analyze Its data packets, if the port is 80 or 8080, will not be forwarded to the gateway.

The question is: how should I forward other data packets? It is best to have the relevant source code.
Reply

Use magic Report

0

Threads

24

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-26 18:15:01
| Show all posts
You can search for arp interference
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-26 19:00:01
| Show all posts
You can look up the DHCP implementation materials to see what principle the computer relies on to obtain the gateway when it is turned on.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list