Re: Multiple IP with one nic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gregory P. Ennis wrote:

On Mon, 2005-11-21 at 19:02 -0400, Trevor "TeC" Christian wrote:

Adding to the mention of firewall rules... iptables (when last checked), i believe does not recognize eth0:X as a device and as such rules related to said traffic still have to be applied based on the main interface.

Correct me if I'm wrong...


--

Trevor,

You may be correct but I believe it can be managed by using the IP
addresses

-A INPUT -s ###.###.###.250 -i lo -j ACCEPT
-A INPUT -s ###.###.###.251 -i lo -j ACCEPT


-A OUTPUT -s ###.###.###.250 -j ACCEPT -A OUTPUT -s ###.###.###.251 -j ACCEPT

where ###.###.###.250 is addressed in eth0
and ###.###.###.251 is addressed in eth0:1
This is how I was able to do it.

Greg

True....

That's the way i got it done myself.

--
*Trevor "TeC" Christian*
/TeC Productions Studios/
Cell #: (767) 225 4472
IM
  MSN: trevorc98@xxxxxxxxxxx / trevor@xxxxxxxxxxxxxxxxx
  YM : trevorc01@xxxxxxxxx
  AIM: DoubleOTeC
  GoogleTalk: doubleOTeC@xxxxxxxxx
------------------------------------------------------------------------
Home Page <http://trevor.bouyon.dalive.com/>
Curriculum Vitae <http://bouyon.dalive.com/cv/>
Dalive Market <http://www.dalivemarket.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux