Re: [BangPypers] Two days course on Python
On Wed, Jun 27, 2012 at 10:08 AM, kala Vinay wrote: > Dear All, > > credativ India specialized in open source, conducting a two days course on > Python Programming on 13th and 14th July 2012. > > Interested candidates can contact: train...@credativ.in > > Please don't spam the list. Repeated posting with the same title/content with no other replies in the thread is spamming. > Regards, > > Vijayakala > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Python script to limit access to Internet...
Hello, I would like to limit internet access at my home, for some computers. Basically for a given time during the day (read schedule), I wish that the a given computer should not be able to access the internet. However, the computer is still connected to the internal LAN, so file/print sharing should be allowed. Something like what this software does: http://www.blumentals.net/inetprot/ And, of course I would like to do this in Python. Any pointers ? Thanks in advance. Best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
On Wed, 2012-06-27 at 13:34 +0530, Vishal wrote: > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that > the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so > file/print > sharing should be allowed. what is the configuration of the LAN? are you using some proxy like squid and a dhcp server, or are you using the router as a dhcp server? Are you running your own firewall? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
Use Squid Proxy sever --Rahul On Wed, Jun 27, 2012 at 1:34 PM, Vishal wrote: > Hello, > > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so file/print > sharing should be allowed. > Something like what this software does: > http://www.blumentals.net/inetprot/ > > > And, of course I would like to do this in Python. > > Any pointers ? Thanks in advance. > > Best regards, > Vishal Sapre > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
On Wed, Jun 27, 2012 at 1:43 PM, Kenneth Gonsalves wrote: > On Wed, 2012-06-27 at 13:34 +0530, Vishal wrote: > > I would like to limit internet access at my home, for some computers. > > Basically for a given time during the day (read schedule), I wish that > > the > > a given computer should not be able to access the internet. > > However, the computer is still connected to the internal LAN, so > > file/print > > sharing should be allowed. > > what is the configuration of the LAN? are you using some proxy like > squid and a dhcp server, or are you using the router as a dhcp server? > Are you running your own firewall? > -- > regards > Kenneth Gonsalves > > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > I am using the router as the DHCP server. The firewall is windows firewall. No separate proxy server. Most solutions i looked at, pointed to being something for the entire network...not sure how to use them, since in my network everyone is connected to the router, which is then connected to the internet (just a regular home network), no central authority controlling others. -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
Vishal writes: > Hello, > > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so file/print > sharing should be allowed. > Something like what this software does: http://www.blumentals.net/inetprot/ > > > And, of course I would like to do this in Python. There are a number of ways to do this and a number of pieces your program will have. The timer part which is trivial and which you can outsource to cron (lock down at such and such time). As for the restrictions, the most reliable way I can think of (which is not cross platform) is to first change your firewall rules to disallow connections outside of a specific network (except for maybe some protocols like ssh if you need them) and then to change your root password to something random so that you can't break out of your setup. It should have a way of reverting your password too and also some kind of fail safe (e.g. reboot to get back regular functionality) etc. Luckily for you, this has been implemented atleast for Gnu/Linux as is available as http://thomer.com/lockout/ [...] -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
On Wed, 2012-06-27 at 14:15 +0530, Vishal wrote: > I am using the router as the DHCP server. The firewall is windows > firewall. ouch > No separate proxy server. > > Most solutions i looked at, pointed to being something for the entire > network...not sure how to use them, since in my network everyone is > connected to the router, which is then connected to the internet (just > a > regular home network), no central authority controlling others. the simplest solution is to run your own dhcp/proxy/firewall server. It is dead easy on linux and you do not need to write any scripts. Just a cron job to handle the timing. I do not know anything about windows - but one thing, networks where you rely on the dhcp server on the router are highly unsafe. Please avoid them. > -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
Kenneth Gonsalves writes: [...] > but one thing, networks where you rely on the dhcp server on the > router are highly unsafe. Please avoid them. Why so? -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
On Wed, 2012-06-27 at 15:38 +0530, Noufal Ibrahim wrote: > Kenneth Gonsalves writes: > > [...] > > > but one thing, networks where you rely on the dhcp server on the > > router are highly unsafe. Please avoid them. > > Why so? in the first place, these are setup by the 'technical' staff of the service provider. The root password is usually root123, the firewall is identical on all modems, the permissions are the widest possible and the client machines are usually windows. I use this, but my machines are all linux with proper firewalls, and I can see the sort of rubbish the router lets in in the logs. -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
>> > but one thing, networks where you rely on the dhcp server on the >> > router are highly unsafe. Please avoid them. >> >> Why so? > > in the first place, these are setup by the 'technical' staff of the > service provider. The root password is usually root123, the firewall is > identical on all modems, the permissions are the widest possible and the > client machines are usually windows. I use this, but my machines are all > linux with proper firewalls, and I can see the sort of rubbish the > router lets in in the logs. True, but I am not sure how this is related to running the DHCP server on the router. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Two days course on Python
-Original Message- From: Anand Balachandran Pillai Subject: Re: [BangPypers] Two days course on Python On Wed, Jun 27, 2012 at 10:08 AM, kala Vinay wrote: >> Dear All, >> >> credativ India specialized in open source, conducting a two days course on >> Python Programming on 13th and 14th July 2012. >> >> Interested candidates can contact: train...@credativ.in >> >> > Please don't spam the list. Repeated posting with the same title/content > with no other replies in the thread is spamming. Sorry, my intention was not to spam the list. There was a new schedule and I put that in the list. I have been receiving enquiries directly. This is a commercial course and here onwards I will mark it as commercial in the subject. I will also limit the posting to one per schedule; is that fine? -- Regards, Vijayakala ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python script to limit access to Internet...
On Wed, 2012-06-27 at 16:13 +0530, Baishampayan Ghose wrote: > >> Why so? > > > > in the first place, these are setup by the 'technical' staff of the > > service provider. The root password is usually root123, the firewall > is > > identical on all modems, the permissions are the widest possible and > the > > client machines are usually windows. I use this, but my machines are > all > > linux with proper firewalls, and I can see the sort of rubbish the > > router lets in in the logs. > > True, but I am not sure how this is related to running the DHCP server > on the router. ok if you configure the server on the router yourself, replace the root password and configure the firewall there also (after all most routers run linux, so no big deal - anyway this is getting highly OT. -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers