dns tunneling and traffic redirection issue

Joined
May 6, 2011
Messages
4
Reaction score
0
Points
1
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
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
What is the subnetmask? It would need to class C.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top