|
|
Share internet connections on a 192.168.x.x network
Hi there. My home net uses 192.168.2.x and so when i tried to use parallels in host-only networking mode, and Internet Sharing, nothing would work because 192.168.2.0/24 is HARDCODED :( I used your script, it worked very well, THANK YOU.
My next step though, was i want to let the parallels system also ride my mac's vpn tunnel (juniper's network connect vpn - uses jnc0 interface) so that i wouldnt need to run two VPN clients. So here's my script - 99% of it is yours. The difference is i'm running two natds, two divert rules, and ... it works very very well. My only frustration now is that i cant get parallels to NOT hand out DHCP to the host-only adapter, and to have it use osx's bootpd, so i have to manually assign my IP/DNS on the parallels host (windows XP if anyone cares). Here's my current script. Any tips on parallels not-dhcping are greatly appreciated! --- #!/bin/sh # turns up natd/divert for parallels host # all credit goes to tejinashi http://www.macosxhints.com/article.php?story=20050331194834746 # /sbin/ifconfig en2 192.168.90.254 netmask 255.255.255.0 broadcast 192.168.90.255 /usr/libexec/bootpd -P -D /usr/sbin/natd -interface en1 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface en2 /usr/sbin/natd -interface jnc0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface en2 -port 8999 /sbin/ipfw add 99 divert 8999 ip from any to 10.9.0.0/16 via jnc0 /sbin/ipfw add 100 divert natd ip from any to any via en1 /usr/sbin/named -c ~/com.apple.named.conf.proxy /usr/sbin/sysctl -w net.inet.ip.forwarding=1 thanks again! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|