Re: Re: DELPHI PACKET MANIPLATION AND ROUTING

Home Forums Discussions Support Portal DELPHI PACKET MANIPLATION AND ROUTING Re: Re: DELPHI PACKET MANIPLATION AND ROUTING

#6737

Vadim Smirnov
Moderator

Under “using MSTCP default behavior” I mean that you may modify incoming/outgoing packets and let TCP/IP route them. Like in case of NAT, WIndows TCP/IP stack by default routes packets coming from LAN into default gateway interface (connected to the Internet). To implement NAT you can only capture packets from external (Internet connected) network interface:
– For outgoing packets change source IP address to Internet interface assigned one and port allocated/according NAT table
-For incoming packets change destination IP/port according NAT table

This way you use Microsoft TCP/IP routing and don’t have to implement it on your own.

Is that clear now?