LinuxQuestions.org
Review your favorite Linux distribution.
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 08-17-2010, 03:49 PM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
Shorewall with aliased IPs?


Quote:
Originally Posted by win32sux View Post
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).
Shit, i was about to add another NIC to my box and well, i dont have any more PCI slots...

Regardless of that security issue discussed in the thread, check please if this is "enough"

eth2 -> 192.168.1.0
eth2:0 ->192.168.50.0
eth1 and eth0 are the net interfaces, 1 router each to provide wan failover (not implemented here)


Hosts:
Quote:
loc1 eth2:192.168.1.0/24
loc50 eth2:192.168.50.0/24
Interfaces
Quote:
net6 eth0 detect
net7 eth1 detect
- eth2 192.168.1.255,192.168.50.255
Masq
Quote:
eth0 eth2
eth1 eth2
eth2 eth2
Policy
Quote:
all all ACCEPT info
Rules
SECTION NEW
Quote:
REJECT loc50 loc1 all
Zones
Quote:
fw firewall
net6 ipv4
net7 ipv4
loc1 ipv4
loc50 ipv4

Problems / Doubs:

1) Is the hosts file required?

2) I guess i need doing masq from local to each external, and also from local to local even if they share the same interface, hence the eth2 eth2 in the masq file...

3) So is shorewall well implemented in these scritps to handle aliases?
 
Old 08-19-2010, 12:03 PM   #2
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
maybe this is the wrong section,

could we move the last post to the netwroking??

thank you
 
Old 08-21-2010, 02:37 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
As requested by the OP, this has been pruned from where it was originally posted, and moved to Networking.
Quote:
Originally Posted by fdelval View Post
maybe this is the wrong section,

could we move the last post to the netwroking??

thank you
 
  


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
Shorewall, Two Public IPs and Two different servers kaitech76 Linux - Networking 0 04-09-2009 05:24 PM
IP aliasing and open ports (27015 open on 4 aliased IPs) eSport-Eu Linux - Networking 0 01-14-2009 07:48 PM
Rules for specif ips internally with shorewall eXor Linux - Security 5 02-08-2008 10:30 PM
APF - open ports on aliased IPs riotpunk Linux - Software 1 10-29-2007 06:38 PM
shorewall with 2 external static ips and DMZ gjmwalsh Linux - Networking 0 05-10-2004 09:31 PM

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

All times are GMT -5. The time now is 04:10 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