Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th September 2004, 09:35 AM
jsvandehoef Offline
Registered User
 
Join Date: Sep 2004
Posts: 6
Exclamation Iptables will not take Ethernet Alias Eth0:1

Hi,

I am configuring my Firewall with IPTables. And when I want to assign some rules to my "eth0:1" ethernet alias, iptables won't take that

Does that mean that the rules I had defined for my eth0 ethernet card, will also be the rules for my aliasses??

Best Regards,

Jeroen
Reply With Quote
  #2  
Old 1st October 2004, 02:18 AM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 547
That does seem like an intuitive piece of code for the interface parameter. You might suggest that to the netfilter people. The answer is that you will need to write a rule for each of your ethernet interfaces. You could use "eth+" for all ethernet devices. The rules are applied from the beginning and the first rule to apply to the traffic is the one used.
Reply With Quote
  #3  
Old 9th October 2004, 09:45 PM
Lars_the_Swede Offline
Registered User
 
Join Date: Jul 2004
Location: Gothenburg, SWEDEN
Posts: 8
I imagine that you have different IP-numbers on eth0 and eth0:1, so to use different rules you have to look at the IP-numbers also, i.e. something like this (this is just a short example)
Code:
$IPT -A INPUT -i $INET_ETH -d $INET1 -j ip1_from_inet
$IPT -A INPUT -i $INET_ETH -d $INET2 -j ip2_from_inet
$IPT=/sbin/iptables, $INET_ETH is the ethernet interface, i.e. eth0, $INET1 and $INET2 are the two different IP-numbers of eth0 and eth0:1, both jump of to two different chains with different rules in them.

Lars
Reply With Quote
Reply

Tags
alias, eth01, ethernet, iptables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F9 ethernet device not found (/dev/eth0 doesn't exist) chamric Servers & Networking 1 14th October 2008 03:09 PM
System eth0 and Auto Ethernet khandu Servers & Networking 0 30th April 2008 12:56 PM
eth0 and eth1 alias points to the same module djotan Servers & Networking 0 22nd May 2006 09:03 PM
Ethernet card detected, but i i cant activate it on eth0 highonlife Hardware & Laptops 4 6th November 2005 11:24 AM


Current GMT-time: 04:33 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat