How to build a better security setup for my problem?
Hello to all,
I have to give internet access to a small group of users from a local network. Internet interface is eth0 and local lan interface is eth1. I guess these rules are ok for my intention:
iptables -t mangle -A FORWARD -i eth1 -o eth0 -s x.x.x.x -m mac --mac-source aa:aa:aa:aa:aa:aa -j ACCEPT iptables -t mangle -A FORWARD -i eth1 -o eth0 -s y.y.y.y -m mac --mac-source bb:bb:bb:bb:bb:bb -j ACCEPT iptables -t mangle -A FORWARD -i eth1 -o eth0 -j DROP
But I recently found out that mac address can be changed. So, I need a third security identifier for iptables or any other solution to increase security. Any clues on this? thx.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
Quoted 9 lines · Vlad H.
Hello to all,
I have to give internet access to a small group of users from a local network. Internet interface is eth0 and local lan interface is eth1. I guess these rules are ok for my intention:
But I recently found out that mac address can be changed. So, I need a third security identifier for iptables or any other solution to increase security. Any clues on this? thx.
What is your concern? What activity are you trying to prevent? What
activity are you trying to allow (ie: what sort of access to the Internet do you want to allow people - mail? web? ftp? telnet? ssh? etc...)
Antony.
Signature · 5 lines
Normal people think "If it ain't broke, don't fix it".
Engineers think "If it ain't broke, it doesn't have enough features yet".
Please reply to the list;
please don't CC me.1.) What activity are you trying to allow?
General internet access for a small group of users from a larger local network: web, ftp, mail, etc.
2.) What activity are you trying to prevent? Deny internet access for all other local users.
3.) What is your concern?
A denied user can change his mac address to aa:aa:aa:aa:aa:aa and ip address to x.x.x.x for example and become a valid internet user.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
Quoted 3 lines · Vlad H.
1.) What activity are you trying to allow?
General internet access for a small group of users from a larger local
network: web, ftp, mail, etc.
Okay, so you want these people to be able to do more or less anything, out to the Internet....
Quoted 2 lines
2.) What activity are you trying to prevent?
Deny internet access for all other local users.
Well, yes, I assumed that - what I really meant was "what do you suspect your denied users will get up to, which you wish to detect and make ineffective?" In this case it seems that the answer is IP and MAC address stealing / spoofing.
Quoted 3 lines
3.) What is your concern?
A denied user can change his mac address to aa:aa:aa:aa:aa:aa and ip address to x.x.x.x for example and become a valid internet user.
True. Here are a few ideas which might help you:
1. Run arpwatch and keep an eye on the MAC/IP combinations which you see on the network.
2. Install an ssh server on the machines which are allowed access to the Internet, and periodically check that they can be connected to (using a digital signature, not a password).
3. Set up a VPN between the allowed clients and the firewall, so that a machine which cannot set up a VPN tunnel cannot route to the Internet.
4. Set up a proxy firewall instead of a packet filter, with user authentication for things like ssh, ftp, http, and selective filtering for things like pop3 & smtp.
5. Require users to log in to a (local) web server with a username and password, which if successful runs a script to install the netfilter rule
enabling them access to the Internet. The rule is removed either after some
period of time, or when they close their browser connection, or something similar which meets your needs.
6. Don't give the users root (or Administrator) access to their machines so they cannot change their IP & MAC addresses.
7. Use a tool such as nmap to check the uptimes of clients which should be allowed access, and investigate any which seem to jump forward or backward.
Hope something here helps,
Antony.
Signature · 6 lines
If you want to be happy for an hour, get drunk.
If you want to be happy for a year, get married.
If you want to be happy for a lifetime, get a garden.
Please reply to the list;
please don't CC me.