Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables и 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
lum3n
n00b
n00b


Joined: 04 Jul 2004
Posts: 5
Location: Russia, Siberia, Tomsk city

PostPosted: Sun Aug 08, 2004 11:52 am    Post subject: iptables и MAC Reply with quote

ДОброе время суток товарищи пингвиноводцы.
Доболе банальная проблема: есть сетка из 200 компов - 192.168.0.0/24 есть сервак на Gentoo, у которого eth1 смотрит в сетку, ИП у него 192.168.0.1, а eth0 смотрит в инет к прову. Задача сделать с помощью iptables фильтр по МАС адресам, т.е. пишем в правиле тех кому можно ходить в инет, а остальным от ворот поворот . Если не сложно помогите советом.
Back to top
View user's profile Send private message
deadlyFROZEN
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 114

PostPosted: Mon Aug 09, 2004 11:09 am    Post subject: Reply with quote

привет томичу от томича :P
man iptables
_________________
...whether tis nobler? from the win to suffer,
from the bugs ´n issues of a commercial system
or to raise your mind against a sea of troubles,
and by a LINUX end them?...
Back to top
View user's profile Send private message
chiko
n00b
n00b


Joined: 22 Jan 2004
Posts: 52
Location: Achinsk, Krasnoyarsky kray, Russia

PostPosted: Tue Aug 10, 2004 7:51 am    Post subject: Reply with quote

Привет сибирякам от сибиряка :)

Поройся на opennet.ru по словам iptables tutorial
_________________
Athlon-XP 1900+
Fluxbox 0.99
Back to top
View user's profile Send private message
Apexman
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 141

PostPosted: Tue Aug 10, 2004 2:58 pm    Post subject: Reply with quote

Да ладно вам человека туториалами стращать :)
iptables -A FORWARD -i eth1 -m mac --mac-source xx:xx:xx:xx:xx:xx -j ACCEPT
arp -s ip mac
ну и для NAT'a
iptables -t nat -A POSTROUTING -s net/mask -j SAME --to ip-eth0
хотя, привязка к mac-ам - дело опасное, лучше один раз не поленится и настроить pptpd :)
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