Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: Re: ip routing after changing mac address to a virtual one
@ 2006-11-30 16:45 first last
  2006-12-03 22:03 ` Martijn Lievaart
  0 siblings, 1 reply; 4+ messages in thread
From: first last @ 2006-11-30 16:45 UTC (permalink / raw)
  To: Mike; +Cc: netfilter

Hi Mike,

Yes, eth1 gets its IP address from DHCP server. DHCP
server always gives me the same IP address because it
knows my MAC address. So I only can get a different IP
address by changing my MAC address.

B.R

Sina

>
>
>trying to understand your question better -- does
eth1 use dhcp to get
>a connection from the ISP?
>
>On 11/25/06, first last  wrote:
>> Hi all.
>>
>>  I have a SuSE Linux box with two network
interfaces.
>> An ethernet which I use to connect to the ISP, and
a
>> wireless interface to share Internet with my room
>> mate. The problem is when I change the MAC address
of
>> my ethernet card (eth1) in order to get a different
IP
>> address from ISP, iptables no longer does the
>> masquerading, thus my friend can't access to the
>> Internet anymore. I try to restart iptables but
>> nothing happens. Our guess is that iptables uses
real
>> mac addresses of network interfaces to forward and
NAT
>> ip packets, so it doesn't work with virtual MAC
>> address.
>>
>> can anyone please suggest a solution to this issue?
>>
>> Thank you very much



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


^ permalink raw reply	[flat|nested] 4+ messages in thread
* ip routing after changing mac address to a virtual one
@ 2006-11-25 18:29 first last
  2006-11-26 14:40 ` Mike
  0 siblings, 1 reply; 4+ messages in thread
From: first last @ 2006-11-25 18:29 UTC (permalink / raw)
  To: netfilter

Hi all.

 I have a SuSE Linux box with two network interfaces.
An ethernet which I use to connect to the ISP, and a
wireless interface to share Internet with my room
mate. The problem is when I change the MAC address of
my ethernet card (eth1) in order to get a different IP
address from ISP, iptables no longer does the
masquerading, thus my friend can't access to the
Internet anymore. I try to restart iptables but
nothing happens. Our guess is that iptables uses real
mac addresses of network interfaces to forward and NAT
ip packets, so it doesn't work with virtual MAC
address.

can anyone please suggest a solution to this issue?

Thank you very much


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-03 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 16:45 Re: ip routing after changing mac address to a virtual one first last
2006-12-03 22:03 ` Martijn Lievaart
  -- strict thread matches above, loose matches on Subject: below --
2006-11-25 18:29 first last
2006-11-26 14:40 ` Mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox