KarlisRepsons wrote:Then I'll give an example problem and what should be done to comfortably stagnate in IPv4:
we have a gentoo machine, which runs some services like sshd and dovecot -- a small server; such machine has to be able to work provided just the most casual LAN connection behind NAT, all ports open, but no router/NAT adjustments or similar possibilities provided.
How would you solve it?
HI again Karlis,
well, more than just one possible way....
first, a dedicated and permanent VPN connection, this requires as well routing, add route bla bla bla, S/DNAT (FullNat on a Linux Router+Server), or Portforwarding like easily be done at most Routers

The other is a Tunnel... any port can be used, its just ur decission done and set up in your configuration, even over port 80 it would work, you will also need a configured routing and Portforwarding
What does Routing mean?... simple both LAN IP Segments like this: add route 192.168.168.0/32 mask 255.255.255.0 gateway bla bla bla. the other , secnd destination LAN Segment needs it as well..........both should be able to communicate between each other, this is to be done with add route on both LAN´s;)... thats it
third..... when ur behind a Linux Router/Server.. teach him Bridging..(bind the Public IP to a Virtuall Iface, the real NIC has NO IP for bridging=> transparent !

) bridging can be done on all in/out coming/going traffic , on IP Segemnts or simple IP´s... i would use IP Bridging, more comfortable and avoids unwanted Traffic ... then set up a tunnel.... so all traffic will be transfered kinda "transparent" through the Bridge(Router) or named Brouter

... routing has to be done as well.... thats it
some configuration on Iptables/Etables..... and it will work.....
A hint.. when u call someone abroad.... how does it work? easy logic eh?? nearly the same way works IP Routing....
But... you will allways need to configure at least some small portforwardings etc on the Router.... no Access to the Router, no luck....