neodata686 All American 11577 Posts user info edit post |
Trying to figure out a work around. I have a laptop and when I'm connected via ethernet I have access to websites x, y, z within the lan but not the rest of the internet. Via WIFI (hot spot) I have access to everything but not the internal network. Is there a way to use both adapters and route one browser/virtual machine to one adapter and another to another adapter? 10/26/2011 11:11:12 AM |
GKMatt All American 2426 Posts user info edit post |
trying to get around your company's firewall restrictions? 10/26/2011 11:16:27 AM |
neodata686 All American 11577 Posts user info edit post |
Not really. My company is the one providing the hot spot. Does anyone have experience with simple network load balancing? Within windows? I already use a VPN within a virtual machine to access a network but now I can just plug in directly thus bypassing the VPN but I'd like to still have access to the internet via my hotspot.
This is proving helpful:
http://www.tomshardware.com/forum/20290-42-simultaneous-multiple-internet-connections
[Edited on October 26, 2011 at 11:24 AM. Reason : s] 10/26/2011 11:18:45 AM |
Grandmaster All American 10829 Posts user info edit post |
Change the metric of the wired connection to something above 0?
--
If an acceptable end result is using the wired connection for xyz and the hotspot for everything else.
http://thewolfweb.com/message_topic.aspx?topic=614616&page=1#14829918
Always second guess myself on which is which.
[Edited on October 26, 2011 at 11:34 AM. Reason : ] 10/26/2011 11:27:50 AM |
neodata686 All American 11577 Posts user info edit post |
Um yes. Basically I want one browser instance to access the network on the wired connection then use the wireless adapter for everything else. 10/26/2011 11:32:29 AM |
Grandmaster All American 10829 Posts user info edit post |
So say I'm using public wifi to look up tutorials on how to program a router that's on 10.x.x.x. If you change the metric of wired to 1 then by default your traffic is routed out of the gateway on wireless network but you can still access the wired router by IP.
I think that's how it works. 10/26/2011 11:37:45 AM |
neodata686 All American 11577 Posts user info edit post |
I need to tell one browser to pull the wired adapter and everything else to use the wireless.
And I can't change anything on the wired side.
[Edited on October 26, 2011 at 11:42 AM. Reason : s] 10/26/2011 11:41:22 AM |
Grandmaster All American 10829 Posts user info edit post |
Can you make changes to any of the adapters?
Wired LAN - 172.16.1.101 -> Internal Gateway
Hotspot - 192.168.1.101 -> Public Gateway
x - 172.16.1.5 y - 172.16.1.6 z - 172.16.1.7
route add 172.16.1.5 mask 255.255.255.0 172.16.1.101 route add 172.16.1.6 mask 255.255.255.0 172.16.1.101 route add 172.16.1.7 mask 255.255.255.0 172.16.1.101
Would that work? Maybe I'm not understanding the problem correctly :\
[Edited on October 26, 2011 at 11:50 AM. Reason : ] 10/26/2011 11:45:09 AM |
neodata686 All American 11577 Posts user info edit post |
Yes I have 100% access to the laptop and my air card. The network I typically access via Cisco VPN in a virtual machine I now have a hard line to. I was thinking something like this:
http://www.r1ch.net/stuff/forcebindip/
First issue though is if I have both the wifi adapter on AND the lan plugged in which will Window 7 use by default? 10/26/2011 11:48:36 AM |
Grandmaster All American 10829 Posts user info edit post |
Windows 7 will use the Wired connection unless you change it from Automatic Metric. It sounds like you just want to access your corporate network for file sharing and internal sites, but still have unrestricted access to the internet via hotspot.
http://www.howtogeek.com/howto/27994/how-to-change-the-priority-of-wiredwireless-network-cards-in-windows/
[Edited on October 26, 2011 at 11:55 AM. Reason : ] 10/26/2011 11:52:01 AM |
neodata686 All American 11577 Posts user info edit post |
Yes pretty much. I need to access an internal site but use my air card for everything else. Yeah Windows 7 defaults to the wired connection if wireless is turned on.
I can change the adapter settings. Networking isn't my specialty though. When it comes to routing tables I'm mostly lost. I know what they are and kind of how they work but I'd need a little assistance setting them up. To use your method I'd need the internet IP of the sites I'm accessing on the lan? 10/26/2011 12:00:21 PM |
Grandmaster All American 10829 Posts user info edit post |
Yeah I don't fully understand the concept either so I could very well be giving you a ton of misinformation. Maybe someone who knows what's up will chime in soon.
I think you have a couple of different ways to accomplish what you're trying to do. I think this is mostly correct.
-Force Windows to send everything out of wifi gateway and when you attempt to hit something on your corporate intranet it will automatically try to reach it over wired connection when it fails to find it on wireless.
-Set up static routes so Windows already knows that when you want to access something on the corporate intranet it should use the wired gateway instead of wireless.
-The application-level IP binding you were talking about earlier. 10/26/2011 12:09:28 PM |
neodata686 All American 11577 Posts user info edit post |
Ok I set priorities for each adapter so when I have both plugged in it defaults to the wireless. Step one complete. Windows is going to route everything through the wireless adapter though. Now I need to somehow bind a program to the second adapter. Unless your routing strategy would work. 10/26/2011 12:12:51 PM |
Grandmaster All American 10829 Posts user info edit post |
Have you tried to access something on your LAN yet?
Also, this may or may not be a network security faux pas.
[Edited on October 26, 2011 at 12:20 PM. Reason : ] 10/26/2011 12:14:09 PM |
neodata686 All American 11577 Posts user info edit post |
Yeah I can't access it unless the lan adapter is set to a priority higher than the wireless adapter. Windows I think will always pull from the higher priority adapter unless you override it. 10/26/2011 12:17:39 PM |
Grandmaster All American 10829 Posts user info edit post |
try manually adding routes then. Do you know the subnet of your corporate lan?
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_tcpip_pro_addstaticroute.mspx?mfr=true 10/26/2011 12:23:39 PM |
neodata686 All American 11577 Posts user info edit post |
Think so. Should be under adapter status. Grabbing lunch now. Going to give it a shot afterwards. 10/26/2011 12:41:37 PM |
neodata686 All American 11577 Posts user info edit post |
Can't figure out forcebind. Doesn't want to work. Will try manually adding routes. So for this I need subnet of the wired adapter plus the default gateway?
-Plus the IP of the URL I'm trying to access.
Although the URL of the address I need isn't on the same network as the gateway.
Gateway is 171.163 URL is 171.206. Still confused. hmm.
[Edited on October 26, 2011 at 1:40 PM. Reason : s] 10/26/2011 1:25:00 PM |
Grandmaster All American 10829 Posts user info edit post |
Yeah, run ipconfig /all from command prompt.
Ethernet adapter Local Area Connection:
IPv4 Address. . . . . . . . . . . : 172.16.1.55(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Tuesday, October 25, 2011 1:59:28 PM Lease Expires . . . . . . . . . . : Thursday, November 03, 2011 10:47:30 AM Default Gateway . . . . . . . . . : 172.16.1.1 DHCP Server . . . . . . . . . . . : 172.16.1.5
DNS Servers . . . . . . . . . . . : 172.16.1.5 71.2.28.14 63.162.197.99
Wireless LAN adapter Wireless Network Connection:
IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Tuesday, October 25, 2011 1:59:28 PM Lease Expires . . . . . . . . . . : Thursday, November 03, 2011 10:47:30 AM Default Gateway . . . . . . . . . : 192.168.1.1 DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1 71.2.28.14 63.162.197.99
So say that I have something like this and I need to access wiki.neodata.local
C:\Users\Esoteric>nslookup Default Server: Address: 192.168.1.1
> server 172.16.1.5 Default Server: dns1.neodata.local Address: 172.16.1.5
> wiki.neodata.local Server: dns1.neodata.local Address: 172.16.1.5
Name: wiki.neodata.local Address: 172.16.1.57
>exit C:\Users\Esoteric>route add 172.16.1.0 mask 255.255.255.0 172.16.1.55 OK!
-- I think that would work? I've only manually added routes while connected to a VPN so I don't know if the last parameter listed there should actually be the true gateway of 172.16.1.1 nor if you have to specify the interface and metric after it.
[Edited on October 26, 2011 at 1:49 PM. Reason : ] 10/26/2011 1:47:14 PM |
neodata686 All American 11577 Posts user info edit post |
I think I need the metric at the end. I set the ethernet adapter to 9.
When I do a ipconfig /all it says "IP routing enabled: no" at the top. I assume I need to enable it first? 10/26/2011 2:01:24 PM |
Grandmaster All American 10829 Posts user info edit post |
No, I don't think that has any bearing on this, but 'route print' will give you the information you need to fill out metric and interface parameters.
route help gives you the syntax of course.
If that doesn't work, my limited knowledge (read: 10% experience and 90% re-googling) is tapped. 10/26/2011 2:08:19 PM |
neodata686 All American 11577 Posts user info edit post |
I've almost got it. I can access one IP but it's not loading correctly. It's the IP I get when typing in the URL in nslookup but it's a "non-authoritative answer"
Hmm.
Even when I'm in the VPN if I go to the URL of the site I get a different result then if I go to the IP of the site. What would cause that?
[Edited on October 26, 2011 at 3:46 PM. Reason : s] 10/26/2011 3:41:58 PM |
lewisje All American 9196 Posts user info edit post |
wow you have 2 internets open 10/26/2011 3:46:54 PM |
Grandmaster All American 10829 Posts user info edit post |
Are you trying to reach it by the domain or the IP? If you disable the wifi with current config can you immediately access the desired page? 10/26/2011 3:51:36 PM |
neodata686 All American 11577 Posts user info edit post |
It's weird. I think I have the route set up right.
Go to ip of url: page loads somewhat but doesn't give me the same results as going to the actual URL within the VPN/wired connection
Same thing happens if I go to the ip within the VPN. Site doesn't correctly load.
I pinged the url within the VPN and got the ip. Shouldn't going to a site's IP and going to the sites URL act the same? Why would the DNS be messed up?
[Edited on October 26, 2011 at 3:58 PM. Reason : and no can't go to URL with route set up, just IP of it] 10/26/2011 3:58:11 PM |
Grandmaster All American 10829 Posts user info edit post |
It could be on a VPS? What does the IP resolve back to? 10/26/2011 4:03:54 PM |
neodata686 All American 11577 Posts user info edit post |
strange. When I nslookup the IP outside the VPN (with route) I get non-existent domain.
When I nslookup the IP within the VPN I get another server.
I'm confused as to why I can't go to the IP of the URL I need and get what I do when I go to the URL.
-I think it is a VPS on the server. So how can I get to the URL with the route. Obviously the IP isn't working.
[Edited on October 26, 2011 at 4:14 PM. Reason : s] 10/26/2011 4:13:32 PM |
Grandmaster All American 10829 Posts user info edit post |
what if you edited your hosts file and put the "server" IP you get from the VPN connection? 10/26/2011 4:24:02 PM |
neodata686 All American 11577 Posts user info edit post |
Well I need to figure out what IP to use first to get to the URL I want. Going to the URL and going to the URL's IP don't give similar results which is what confuses me. 10/26/2011 4:30:59 PM |
neodata686 All American 11577 Posts user info edit post |
Ok screw this routing business. I figured out I could just select the wired network adapter in XP mode (virtual machine) and that solves my problem.
So windows 7 defaults to wireless adapter XP mode defaults to wired
Problem solved.
Going to give up on routing strategy despite being so close. Thanks though! I owe you a beer. 10/26/2011 4:55:50 PM |
Grandmaster All American 10829 Posts user info edit post |
lol, that works. well played. 10/26/2011 6:39:42 PM |
neodata686 All American 11577 Posts user info edit post |
Switched to VMware 4 Player from Microsoft Virtual Machine but copy/paste is broken in Unity mode and they haven't fixed it yet. GRRRR. Microsoft VM doesn't support GPU acceleration on a second monitor. 10/28/2011 7:50:26 AM |