SageTV Community  

Go Back   SageTV Community > General Discussion > The SageTV Community
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

The SageTV Community Here's the place to discuss what's worth recording, HTPC deals at retail stores, events happening outside of your home theater, and pretty much anything else you'd like. (No For-Sale posts)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2009, 12:36 AM
korben_dallas's Avatar
korben_dallas korben_dallas is offline
Sage Icon
 
Join Date: Oct 2004
Location: USA
Posts: 1,250
Question scriptable internet access while maintaining LAN access

I need a scriptable way of turning on and turning off internet access to a Windows PC, while maintaining its LAN access always.

The PC *must* be accessible on LAN at all times. But it's ability to go out to the internet can only be turned on and off via a script/executable.

Rules/ACL on the router is a no go, because it requires a lengthy reboot on any type of change like that, it takes down the whole network's internet access on the reboot, and there is no way to script or automate this on a schedule.

I'm pretty good w/ DOS batch files, the scheduler (AT), and starting/stopping Windows services, but so far I'm coming up blank on this issue.
__________________
SageTV server & client: Win 10 Pro x64, Intel DH67CF, Core i5 2405s, 8 GB ram, Intel HD 3000, 40GB SSD system, 4TB storage, 2x HD PVR component + optical audio, USB-UIRT 2 zones + remote hack, Logitech Harmony One, HDMI output to Sony receiver with native Intel bitstreaming
Reply With Quote
  #2  
Old 12-20-2009, 01:02 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You can probably do something with ROUTE ADD and ROUTE DELETE to enable/disable the default entry that routes non-local traffic to your default gateway.
__________________
-- Greg
Reply With Quote
  #3  
Old 12-20-2009, 01:46 AM
korben_dallas's Avatar
korben_dallas korben_dallas is offline
Sage Icon
 
Join Date: Oct 2004
Location: USA
Posts: 1,250
I didn't even know there was a ROUTE command. Looks interesting. Initial testing seems positive.
__________________
SageTV server & client: Win 10 Pro x64, Intel DH67CF, Core i5 2405s, 8 GB ram, Intel HD 3000, 40GB SSD system, 4TB storage, 2x HD PVR component + optical audio, USB-UIRT 2 zones + remote hack, Logitech Harmony One, HDMI output to Sony receiver with native Intel bitstreaming
Reply With Quote
  #4  
Old 12-20-2009, 03:42 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
I Googled "command line setting dns server windows" and found the netsh command. Maybe that would work for you. I ran netsh /? but did not try anything else. It looks like it might work for you.

http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

Dave
Reply With Quote
  #5  
Old 12-20-2009, 07:06 PM
korben_dallas's Avatar
korben_dallas korben_dallas is offline
Sage Icon
 
Join Date: Oct 2004
Location: USA
Posts: 1,250
I'm thinking changes to DNS might affect LAN performance, but being able to directly configure an interface, in particular the default gateway, is very useable. This may work better than ROUTE because it seems the PC doesn't recover too well from ROUTE changes until a reboot.

Keep'em coming guys.
__________________
SageTV server & client: Win 10 Pro x64, Intel DH67CF, Core i5 2405s, 8 GB ram, Intel HD 3000, 40GB SSD system, 4TB storage, 2x HD PVR component + optical audio, USB-UIRT 2 zones + remote hack, Logitech Harmony One, HDMI output to Sony receiver with native Intel bitstreaming
Reply With Quote
  #6  
Old 12-21-2009, 06:11 AM
cychou cychou is offline
Sage Advanced User
 
Join Date: Oct 2004
Location: Sydney, Australia
Posts: 182
Quote:
Originally Posted by korben_dallas View Post
I need a scriptable way of turning on and turning off internet access to a Windows PC, while maintaining its LAN access always.
I use the following reg files (in the zip) to turn on/off the proxy server of Internet Explorer on SageTV server.
Attached Files
File Type: zip Utility.zip (563 Bytes, 282 views)
__________________
SageTV 6.6.2 / 42" Plasma Panasonic TH-42PX600A/ Intel Pentium DC E6500/ 2Gb Ram/KWorld DVB-T PC160-2T/ Logitech Harmony Remote X360/ Gigabyte GeForce 8500 GT (Silent)/ Winfast DTV1000T/ WD Caviar Green 808Gb HD/ Win 7 Ultimate/ Mission Cinema 7/ Denon AVR-1800
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HD100 cant access internet - help! infocus13 SageTV Media Extender 9 11-04-2009 05:00 AM
Hotel Requires login for internet access spvoyek SageTV Placeshifter 2 12-24-2008 12:09 AM
Sage Server with no internet access, need a creative solution wazkaren General Discussion 49 09-19-2008 08:57 PM
How to Connect via Internet when on LAN EChodun SageTV Placeshifter 31 10-09-2006 05:30 PM
How best to secure client access from Internet? Dr Squish SageTV Software 3 04-26-2004 05:42 PM


All times are GMT -6. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.