Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Мост и роутер
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
C2H5OH
n00b
n00b


Joined: 21 Mar 2005
Posts: 47
Location: St. Petersburg, Russia

PostPosted: Mon Apr 25, 2005 9:35 pm    Post subject: Мост и роутер Reply with quote

Народ подскажите плз как имея на машине мост сделать гейтвей в инет и открыть его только для одного ip?
Заранее спасибо!
Back to top
View user's profile Send private message
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Wed Apr 27, 2005 8:04 pm    Post subject: Reply with quote

че-то я не понял у машины сколько интерфейсов?
Back to top
View user's profile Send private message
dish
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 266
Location: Moscow, Russia

PostPosted: Wed Apr 27, 2005 9:52 pm    Post subject: Reply with quote

Интерфейсов, судя по всему, два. Надо убрать мост и сделать из машины роутер.
_________________
Contrary to popular belief, UNIX is user-friendly. It just happens to be very selective about who it decides to make friends with. A. Haiut.
Back to top
View user's profile Send private message
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Thu Apr 28, 2005 6:13 am    Post subject: Reply with quote

гейтвей сделать так:

/sbin/iptables -t nat -A POSTROUTING -s nat_ip -d ! nat_ip/netmask -j SNAT --to-source bridge_ip

где nat_ip - тот кому нужно инет открыть

если я правильно понял задачу...


2Dish: а мост зачем убирать?
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