LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-15-2010, 07:26 AM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
questiion about shorewall dealing with ip aliases


I heard iptables doesnt support ip aliases in an easy way, i didnt go further because i use shorewall and shorewall can handle well aliases, so i went for it

Somehow i read this:

Quote:
Sometimes multiple IP addresses are used because there are multiple subnetworks configured on a LAN segment. This technique does not provide for any security between the subnetworks if the users of the systems have administrative privileges because in that case, the users can simply manipulate their system's routing table to bypass your firewall/router. Nevertheless, there are cases where you simply want to consider the LAN segment itself as a zone and allow your firewall/router to route between the two subnetworks.
http://www.shorewall.net/Shorewall_a...nterfaces.html


Now i have a setup where in eth0 i have both 192.168.0.x and 192.168.1.x subnets
I guess that a 192.168.1.1 device could add a route to 192.168.2.0 subnet and somewhat bypass all rules set in the 192.168.2 subnet to the firewall or to the net or the the other 192.168.1 subnet, right??
to sum up, instead of having as gw the .2.254 firewall address which is filtered, i would change it to the 1.254 and pass it???

i guess that is all the problem right?? can you confirm it? i dont want to let any backdoor open while setting up aliases with shorewall
 
Old 08-16-2010, 01:06 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by fdelval View Post
I heard iptables doesnt support ip aliases in an easy way
Where'd you hear that? I've dealt with IP aliases before and don't recall any issues.

But yeah, someone with admin privileges for a host on your network will be able to set any IP configuration and/or MAC address he/she desires on that host, hence the warning about doing filtering on the same segment. Of course, if there's something preventing you from using a dedicated NIC for each network, then you don't really have much of a choice.

Last edited by win32sux; 08-16-2010 at 01:11 AM.
 
Old 08-16-2010, 02:54 AM   #3
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by win32sux View Post
But yeah, someone with admin privileges for a host on your network will be able to set any IP configuration and/or MAC address he/she desires on that host, hence the warning about doing filtering on the same segment. Of course, if there's something preventing you from using a dedicated NIC for each network, then you don't really have much of a choice.
Well i do understand that you can change your ip address and your route table to bypass the firewall just by setting your ip in the unfiltered network.

I can detect if a host changes its ip, but i cant detect if someones just change its route table.

I also dont understand how changing your route table is enough to bypass it...
 
Old 08-16-2010, 04:15 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
If you're an admin of a box, you can give it any IP configuration you please. This implies the ability to configure the gateway address. Hence, if the box is on a segment with multiple gateways, you can make it use whichever of the gateways you want. In other words, this sort of network security measure is reliant upon the hosts not being owned, and that's where the warning comes from. OTOH, on firewalls where you've got networks properly isolated from each other, the firewall is able to filter traffic between segments regardless of what IP configuration tweaks are done to the hosts (and regardless of whether they are owned or not).
 
Old 08-16-2010, 06:19 AM   #5
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by win32sux View Post
If you're an admin of a box, you can give it any IP configuration you please. This implies the ability to configure the gateway address. Hence, if the box is on a segment with multiple gateways, you can make it use whichever of the gateways you want. In other words, this sort of network security measure is reliant upon the hosts not being owned, and that's where the warning comes from. OTOH, on firewalls where you've got networks properly isolated from each other, the firewall is able to filter traffic between segments regardless of what IP configuration tweaks are done to the hosts (and regardless of whether they are owned or not).
ok, i start to see the light at the end of the tunnel...

So a smart user could either change its ip AND ROUTE, or adding another virtual interface and adding a new entry in its routing table,
right?

anyways, that user's journey is still limited to the rules set "from" and "to" in both subnets, either the real or the aliased one,
right?


thanks for your time and patience, but security owns me..

Last edited by fdelval; 08-16-2010 at 07:26 AM.
 
Old 08-16-2010, 03:29 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by fdelval View Post
anyways, that user's journey is still limited to the rules set "from" and "to" in both subnets, either the real or the aliased one,
right?
Only for traffic headed toward another network segment. He/she will be free to attack all hosts on all of your subnets if they're on the same segment, regardless of your firewall rules. If you really want to firewall the two subnets from each other, put each in its own segment (use a dedicated NIC on the firewall for each).

Last edited by win32sux; 08-16-2010 at 03:36 PM.
 
  


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
aliases issue using /etc/aliases lensem Linux - Software 3 04-14-2009 12:48 PM
wrap lines at 80 for long aliases in .aliases.csh jhwilliams Linux - Software 0 07-26-2007 07:49 AM
Stereo questiion frieza General 4 02-27-2007 10:59 AM
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:10 PM.

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