Haseldow
10-25-2002, 01:49 PM
Hi,
Anyone have a good idea of how to make an udp tunnel from some of my friends computer on the internet to one of my servers behind my firewall?
I have Devil-Linux 0.5 firewall that NATs connections (iptables) and a Linux server running the service on a udp port.
There can be more than one computer that should be able to tunnel to my server. And almost all of them would be Windows machines. None of thease PCs have a firewall that does NAT (most have something like ZoneAlarm).
The catch is that the server only accepts local connections so to the server it would have to seem like the connection came from inside my LAN (from the firewall possibly). And if several users would use the service at the same time the packets should be routed correctly.
How could I do this? What Linux (or windows) host and windows (and/or linux) client could I use? Any other ideas? Is this even possible?
If anyone have an answer where only one client can be used at a time, that information would be helpful also.
Just came up with another possible option:
Could it be possible to somehow make a forwarded (NATted) connection to the server to seem like it came from inside the lan (from the same class c network)?
Ie. if someone is connecting from 123.123.123.123 it would seem to the server that it was comming from say 192.168.0.15 and the servers replies to 192.168.0.15 would be send (resent/transferred) to 123.123.123.123 .
Yet another possible solution:
Hmmm...would this work to solve the problem...
iptables -A POSTROUTING -t nat -p udp -d $EXTIP --deport 12345 -j SNAT --to 192.168.0.5:12345
and what other rules should I make? Would this be secure?
EXTIP is firewalls external ip address (dynamic assigned by ISP)
This would seem to come from the firewalls internal ip number...right?
Thanks,
-Haseldow
Anyone have a good idea of how to make an udp tunnel from some of my friends computer on the internet to one of my servers behind my firewall?
I have Devil-Linux 0.5 firewall that NATs connections (iptables) and a Linux server running the service on a udp port.
There can be more than one computer that should be able to tunnel to my server. And almost all of them would be Windows machines. None of thease PCs have a firewall that does NAT (most have something like ZoneAlarm).
The catch is that the server only accepts local connections so to the server it would have to seem like the connection came from inside my LAN (from the firewall possibly). And if several users would use the service at the same time the packets should be routed correctly.
How could I do this? What Linux (or windows) host and windows (and/or linux) client could I use? Any other ideas? Is this even possible?
If anyone have an answer where only one client can be used at a time, that information would be helpful also.
Just came up with another possible option:
Could it be possible to somehow make a forwarded (NATted) connection to the server to seem like it came from inside the lan (from the same class c network)?
Ie. if someone is connecting from 123.123.123.123 it would seem to the server that it was comming from say 192.168.0.15 and the servers replies to 192.168.0.15 would be send (resent/transferred) to 123.123.123.123 .
Yet another possible solution:
Hmmm...would this work to solve the problem...
iptables -A POSTROUTING -t nat -p udp -d $EXTIP --deport 12345 -j SNAT --to 192.168.0.5:12345
and what other rules should I make? Would this be secure?
EXTIP is firewalls external ip address (dynamic assigned by ISP)
This would seem to come from the firewalls internal ip number...right?
Thanks,
-Haseldow