Multiple IP with one nic

Trevor "TeC" Christian trevor at bouyon.dalive.com
Tue Nov 22 10:47:28 UTC 2005


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 at hotmail.com / trevor at bouyon.dalive.com
   YM : trevorc01 at yahoo.com
   AIM: DoubleOTeC
   GoogleTalk: doubleOTeC at gmail.com
------------------------------------------------------------------------
Home Page <http://trevor.bouyon.dalive.com/>
Curriculum Vitae <http://bouyon.dalive.com/cv/>
Dalive Market <http://www.dalivemarket.com/>




More information about the users mailing list