LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2005, 12:02 PM   #1
Trano
Member
 
Registered: Jul 2004
Posts: 30

Rep: Reputation: 15
Access Control Firewall


I am looking for a way to control access through a firewall based on an external script. In the past I have used squid as a transparent proxy through shorewall with an external_acl.

This way seems too complex. Is there any program out there that can use an external script, similar to external_acl in squid, to do access control?

I was looking in shorewall, but all I see is MAC control, and no way to redirect to an authentication website running on the router if the MAC check fails.

Does anyone know of a way I can do this?
 
Old 02-22-2005, 12:15 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
To REDIRECT, make a chain in the nat table specially for the MAC check and make the last rule a REDIRECT

If you are controlling M$ clients, you can setup squid for auth_ntlm.
The clients will then silently auth to a domain controller/samba using their login credentials
Closing the browser will close the auth session..
 
Old 02-22-2005, 04:02 PM   #3
Trano
Member
 
Registered: Jul 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Is there a way to make the redirect dynamic? What I really want to be able to do is have a php script that checks the source and destination and chooses whether to redirect, accept, or deny based on those.

Is there a way to set up a chain to do this?
 
Old 02-23-2005, 08:08 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Sure, that's always possible, with a few security caveats..

The iptables rules can be loaded, added, removed dynamically..
That could be scripted via php or perl from a webpage on the firewall or remote.
Rules need to be operated on as root user, which is the security risk.. allowing a script that much privelege..

A typical example would be only allowing web access to users that have dhcp leases in group "web"..

Have a look at the iptables tutorial for a broad overview of what's controllable.
There's also a netfilter patch-o-matic system to build even more features..

Last edited by peter_robb; 02-23-2005 at 08:13 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall control RedHatCore Linux - Software 1 08-20-2005 07:10 PM
Router Access Control Trano Linux - Networking 1 07-31-2004 06:41 PM
user access control Risc91 AIX 11 06-17-2004 05:12 AM
Access Control for Shutdown RajaRC Linux - Security 1 11-21-2003 05:44 AM
firewall control is stuck Independence Linux - General 1 11-02-2002 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration