changing NAT settings using mprapi.dll

jsk_at_newsgroups.nospam
Date: 03/30/04

  • Next message: Stanley Feng \(MSFT\): "Re: Memory-mapping TCP/UDP send/recv buffer?"
    Date: Tue, 30 Mar 2004 11:01:11 -0800
    
    

    Hi,

    I have a Win2K Server box with 2 network interfaces. The first is connected to the public LAN, while the second is connected to a private network. Right now, the box is setup to serve as a DHCP server to the private network and provide a bridged connection to the public LAN. All works great right now, but I need a way to programmatically change some settings on the NAT. I'm looking at the mprapi.dll library and it looks like it's what I need, however, the documentation for said library is somewhat lacking (at least to me).

    Can someone provide some sample code to, say, setup port forwarding? ie. I want to forward all traffic on a certain port on the public NIC to a particular ip address on the private NIC. Thank you


  • Next message: Stanley Feng \(MSFT\): "Re: Memory-mapping TCP/UDP send/recv buffer?"
    Loading