Permit access to only one website from a station in the internal network
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, it works to block, but not for my wife.
The targeted computer uses WinXP. I hardcoded her IP under her login to a different IP and she could go anywhere.
But when I rebooted and went into my son's account, he had the hard-coded IP, not the DHCP IP, so he could go anywhere.
So I need to find a way to assign an IP depending on which account is logged on.
P.S. at the end of that script insert an "end if". On my computer that scripd didn't find the SWbemLocator object. Maybe it should be installed form Microsoft.
I was able to do it (thanks to CPLUG Lisa) with a batch file in All Users startup:
@echo off
if "%username%" == "wife" GOTO :wife
echo "NOT wife"
netsh interface ip set address "Local Area Connection" static 192.168.XXX.XXX 255.255.255.0 192.168.XXX.XXX 1
GOTO :end
:wife
echo "wife"
netsh interface ip set address "Local Area Connection" static 192.168.xxx.yyy 255.255.255.0 192.168.xxx.xxx 1
:end
If anyone other than wife logs on, they get the restricted IP, each internet site approved must be in the firewall script. If it is not, no page loads...someday I will try to make a default page load saying, "Access Restricted....see Dad"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.