How to open port on iptables locked on a specific internal MAC address?
Hello there.
I am currently having a slight problem with our firewall. Basically "transmissions" are locked and all ports locked except for HTTP and HTTPS. However one developers computer has to have access through the firewall on a specific port (the FTP port, 21). However I need it so that only this specific computer to be able to get through the Firewall. Therefore I thought of opening a port open only for that computers specific MAC address. However after some googling I haven't found the right command/rule for this. Can anyone tell me the rule/show me where I can find something like this?. Thanks in advance. :) Sincerely: Jonatan Nilsson Iceland P.S. Just to clarify: Everything is locked so I thing I may also have to specifie OUT and IN. |
i'm very new to iptables but from the manual:
Quote:
i believe this will work for you: Code:
iptables -A INPUT -p tcp --dport ftp --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT |
The syntax on that is missing the module. It's like:
Code:
-m mac --mac-source xx:xx:xx:xx:xx:xx Code:
iptables -A FORWARD -p TCP -i $LAN_IFACE -o $WAN_IFACE --dport 21 \ |
All times are GMT -5. The time now is 08:01 AM. |