nat

What are the best options for NAT port forwarding?

I'd like to make it easy for users to forward a port on their NAT to their local machine for my C++ app. I'd like to make this work on OSX & Windows. Linux would be a great bonus, but Linux users are probably more comfortable forwarding ports manually, so it is less of a concern. LGPL type code is OK, but I can't use anything that is ...

SNMP payload address translation

I'm using iptables under linux to NAT SNMP traffic. Some of the SNMP packets have VARBINDs that contain the (real) IP addresses of the devices that generated them. This confuses standard management tools, which need to see the NATted addresses in the VARBINDs. So I need to translate the addresses in the payload in addition to those in...

VMware and iptables

Is there a problem using VMware on Windows to host a virtual linux box running iptables? I have a configuration that seems to work on physical hardware but is flaky under VMware. I'm using VMware to run a virtual linux 2.6.24 machine on a Windows 2003 Server host. The linux application is essentially a NATting router that runs iptable...

Python UPnP/IGD Client Implementation?

Hi, I am searching for an open-source implementation of an UPnP client in Python, and more specifically of its Internet Gateway Device (IGD) part. For now, I have only been able to find UPnP Media Server implementations, in projects such as PyMediaServer, PyMedS, BRisa or Coherence. I am sure I could use those code bases as a start, b...

Can't connect to VirtualBox guest through NAT -- connection was closed

Host system is Vista, guest named BoxInABox is Debian lenny. The guest is configured in VirtualBox settings to use NAT. To set up port forwarding for ssh into the guest, I followed the directions at this link: http://mydebian.blogdns.org/?p=148. On the host I did: vboxmanage setextradata BoxInABox "VBoxInternal/Devices/pcnet/0/LUN#0/...

How to discover the type of the NAT a given interface is behind

I would like to discover the type of the NAT (FullCone, Restricted Cone, Port Restricted cone, Symmetric) a given network interface is behind. I've tested different tools (http://freshmeat.net/projects/jstun/, http://code.google.com/p/boogu/) but they report different results for the same interface. I'm looking for a definitive ans...

Is it possible to get the remote ip address in the Apache log file when behind a NAT firewall?

I'm using Apache2, Ubuntu 8.10. Currently Apache is logging the gateway's IP as the host ip, what do I have to do to get it to log the remote client's IP address instead? Is this even possible, or does the NAT router "lose" it for good? Update: It actually looks like it's only logging the gateway's IP for addresses from within the net...

Are there any open source cross platform NAT punch throughs?

Are there any open source cross platform NAT punch throughs? ...

Does Wippien use a direct connection?

I started using Wippien to make p2p connections between 2 distant Windows Servers. I use 2 different GMail Accounts. Wippien uses "Mediators" to initiate the connection. But are mass data transfers really direct, or is it routed through the mediator? I also found this article which seems related: http://stackoverflow.com/questions/442...

Transparent Proxy for IPv6 traffic under Linux

When maintaining networks, it is often an expedient thing to do to run a transparent proxy. By transparent proxy I mean a proxy that 'hijacks' outgoing connections and runs them through a local service. Specifically I run a linux firewall with squid configured so that all tcp/ip connections fowarded on port 80 are proxied by squid. This...

UDP, NAT and setting up "connections"

I know the word "connection" isn't really appropriate when talking about UDP, but... How does a server (the one with the known IP) get its UDP packets through the Internet to a client that is behind NAT? For example: say a client connects and authenticates to the server using some messaging over TCP. At this point the server is ready t...

How to handle ssh host key verification with 2 different hosts on the same (but changing) IP address?

I have 2 ssh servers behind a nat firewall at a location that changes its wan IP every day. They are always at the same wan IP address on a given time but on different ports. I am connecting to server A this way: ssh -p 22001 [email protected] and to server B: ssh -p 22002 [email protected] So I get 2 different host keys for t...

Virtual PC 2007 Can't Access Host Using NAT

I can't access my host machine from my guest machine using the computer name (i.e. WINS). I can access it using whatever IP address it happens to have at the time, but I need a consistent way of accessing it (even if I'm not online). I have a Windows Server 2003 guest virtual machine and a Vista host. I'm using Shared Networking (NAT)...

How do I write code to get through NAT in a similar way to Skype?

Does anyone knows, how skype redirect NAT and FireWalls? ...

Trying to get NAT's external IPAddress with INATExternalIPAddressCallback in C#

How do I get the external IP Address of a NAT using the windows library? I am trying to find any information on INATExternalIPAddressCallback, but have only found one example in C++ using unavailable interfaces to C#. Any guidance would be much appreciated. -Karl ...

NAT Traversal

I am trying to build a peer to peer application. I would like to know how I can accomplish nat traversal in c++. Is there any good library in c++ for this. Or any coding examples, books, links.... anything. ...

Protocol for data encoding for web<->desktop based application

Hello I'm planning to develop a remote desktop system consisting of: The desktop application that can grab and display the screen The server which establishes peer connections, serves STUN/TURN NAT traversal techniques for peer The web based (either Java applet or Silverlight) application that runs from browser and allows the user to...

How to fix "a connection attempt failed because the connected party did not properly respond after a period of time ..." error?

I'm making a game in C# and I want to display the progress (movements and so on) of opponent. So I send events in game via TCP protocol to opponent. I've already tried my application on localhost and it works but when I try to use my external address in order to communicate over the internet I get the error below in class TcpInformer.Co...

method to find my UDP socket's "real" port?

Is there any free service to which I could send a UDP packet and it would respond telling me what is my "real" UDP port? (my application is behind a NAT) This kind of service could allow me to make a p2p coordination server with normal php hosting. The p2p clients would know their UDP ports from this service They will then contact my ...

connecting to a private ip

I want to connect to a system which is behind a router. I know the public address of the router as well as the private ip (fixed always) of the system. How do i establish socket connection with the private ip? ...