Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

iptables on MAC adress end user

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
kmchen
Posts: 74
Joined: 2013-04-24 06:29

iptables on MAC adress end user

#1 Post by kmchen »

Hi

I'm travelling a lot and would like to open SSH ports on my servers for my personal computer's MAC address instead each time adapting my firewall to my new IP address.
Then I tried this:

Code: Select all

iptables -t filter -A INPUT  -p tcp --dport 22 -m mac --mac-source $MYMAC -j ACCEPT
But this doesn't work cause the WIFI router's MAC adress is received by the firewall, not my personal computers's MAC adress.

Any idea ?

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: iptables on MAC adress end user

#2 Post by dilberts_left_nut »

MAC addressing is layer 2, and local only - your plan can't work.

Maybe look at port knocking if you don't want the port always open (although that's really not a big deal with key auth only).
AdrianTM wrote:There's no hacker in my grandma...

Post Reply