Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Раздать инет по mac
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
akam
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2006
Posts: 82
Location: Nab. Chelny, Russia

PostPosted: Thu Oct 13, 2011 1:29 pm    Post subject: Раздать инет по mac Reply with quote

Здравствуйте, подскажите пожалуйста как раздать инет по 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
View user's profile Send private message
burik666
n00b
n00b


Joined: 28 Jan 2007
Posts: 51
Location: Санкт-Петербург

PostPosted: Tue Nov 01, 2011 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum