Hey
i hope this isn't too hard for this forum-
well.. after setting up good iodined server, i've been trying to redirect traffic from tun0 (virtual interface) to en1 (WLAN physical interface).
I've been googling for two days now and cant seem to find any goods.
i tried this:
/usr/sbin/natd -alias_address 10.0.1.1 -interface tun0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface en1 -redirect_port tcp 10.0.0.1:1-65000 1-65000 -l
and some other ipfw stuff that were worthless.
i know i'm supposed to run nat on the server's side but how? (i dont use mac os x server).
tunnel's ip (tun0) on server's side is 10.0.1.1
wlan's ip (en1) on server's side is 10.0.0.1
wlan-router's ip (connected to wlan via en1) is 10.0.0.138
laptop tunnel's ip is 10.0.1.2 (got it from server) and all data is forwarded ok through en1 on laptop's side to 10.0.1.1. i've seen it with wireshark.
anyone? please help...
cheers
i hope this isn't too hard for this forum-
well.. after setting up good iodined server, i've been trying to redirect traffic from tun0 (virtual interface) to en1 (WLAN physical interface).
I've been googling for two days now and cant seem to find any goods.
i tried this:
/usr/sbin/natd -alias_address 10.0.1.1 -interface tun0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface en1 -redirect_port tcp 10.0.0.1:1-65000 1-65000 -l
and some other ipfw stuff that were worthless.
i know i'm supposed to run nat on the server's side but how? (i dont use mac os x server).
tunnel's ip (tun0) on server's side is 10.0.1.1
wlan's ip (en1) on server's side is 10.0.0.1
wlan-router's ip (connected to wlan via en1) is 10.0.0.138
laptop tunnel's ip is 10.0.1.2 (got it from server) and all data is forwarded ok through en1 on laptop's side to 10.0.1.1. i've seen it with wireshark.
anyone? please help...
cheers