View previous topic :: View next topic |
Author |
Message |
akam Tux's lil' helper
Joined: 04 Sep 2006 Posts: 82 Location: Nab. Chelny, Russia
|
Posted: Thu Oct 13, 2011 1:29 pm Post subject: Раздать инет по mac |
|
|
Здравствуйте, подскажите пожалуйста как раздать инет по mac адресу. Такая конструкция не работает:
Quote: | $IPTABLES -t nat -o $INET_IFACE -A POSTROUTING -m mac --mac-source 60:a1:0a:a7:fe:a7 -j SNAT --to-source $INET_IP
[17754.083715] x_tables: ip_tables: mac match: used from hooks POSTROUTING, but only valid from PREROUTING/INPUT/FORWARD |
|
|
Back to top |
|
|
burik666 n00b
Joined: 28 Jan 2007 Posts: 51 Location: Санкт-Петербург
|
Posted: Tue Nov 01, 2011 9:28 pm Post subject: |
|
|
Code: | iptables -P FORWARD DROP
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -m mac --mac-source 60:a1:0a:a7:fe:a7 -j ACCEPT
|
_________________ Linux for you
gentoo.bloodhost.ru Gentoo mirror (Russia, Saint-Petersburg) |
|
Back to top |
|
|
|