Re: Re: DELPHI PACKET MANIPLATION AND ROUTING

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

#6729
Vadim Smirnov
Keymaster

    You can turn on routing on Windows system and it will route the packet without additional efforts from your side.

    You have only to make user authentication on the internal interface and NAT on the eternal (if necessary).

    Refer Internet Gateway sample for the details about NAT. Install script for this sample also turns on routing (NSIS script function):

    Function EnableRouter
    SetRebootFlag true
    ${If} ${IsNT}
    WriteRegDWORD HKEY_LOCAL_MACHINE SYSTEMCurrentControlSetServicesTcpipParameters IPEnableRouter 1
    ${Else}
    WriteRegDWORD HKEY_LOCAL_MACHINE SYSTEMCurrentControlSetServicesVxDMstcp EnableRouting 1
    WriteRegDWORD HKEY_LOCAL_MACHINE SYSTEMCurrentControlSetServicesVxDMstcp IPEnableRouter 1
    ${EndIf}
    FunctionEnd