Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[iptables][solved] Markowanie pakietow
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 130

PostPosted: Tue Aug 22, 2006 2:36 pm    Post subject: [iptables][solved] Markowanie pakietow Reply with quote

Mam z pozoru proste pytanie, ale w praktyce nie potrafie sobie z problemem poradzic.

Markuje sobie rozne pakiety i puszczam je przez filtry w htb. Wszystko gra tylko... jak zamarkowac pozostale pakiety?

Prosilbym o jakis krotki przykladzic badz link.


Last edited by mcbarlo on Thu Aug 24, 2006 7:57 am; edited 1 time in total
Back to top
View user's profile Send private message
qermit
Veteran
Veteran


Joined: 02 Feb 2005
Posts: 1032

PostPosted: Tue Aug 22, 2006 3:15 pm    Post subject: Reply with quote

poco markować resztę, wystarczy że ustawisz domyślną klasę w htb (dla pakietów które ngdzie nie pasują)
_________________
"A co ty masz w swoim LinuXie?" - Dr Qermit
Back to top
View user's profile Send private message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 130

PostPosted: Tue Aug 22, 2006 5:39 pm    Post subject: Reply with quote

Hmm, spodziewalem sie w sumie takie odpowiedzi. Przepraszam, ze nie napisalem dlaczego tak nie moge.

A dlaczego nie moge?

Bo pakiety chcialbym markowac dla kazdego uzytkownika sieci osobno, czyli dla kazdego bylby taki default.

Z tego co sie orientuje donyslna klase w htb mozna zdefiniowac tylko w klasie root. Chyba, ze sie mysle. Jesli tak to prosze o jakis przykladzik, opis skladni, link itp.
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Wed Aug 23, 2006 5:54 am    Post subject: Reply with quote

wstaw więc na końcu reguł markowania taką, która dla danego Ip markuje wszystko, co do tej pory nie ma żadnego znacznika (czyli ma mark=0). Pomocny może być wykrzyknik (!) - negacja.

Albo w htb ustaw filtry dla mark=0 i danego IP.
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 130

PostPosted: Wed Aug 23, 2006 7:53 am    Post subject: Reply with quote

Czyli kazdy pakiet, ktory nie jest zamarkowany tak naprawde ma mark 0?
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Wed Aug 23, 2006 8:27 am    Post subject: Reply with quote

mcbarlo wrote:
Czyli kazdy pakiet, ktory nie jest zamarkowany tak naprawde ma mark 0?

tak mi przynajmiej tcpdump pokazywał i /proc/net/ip_conntrack
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Wed Aug 23, 2006 2:20 pm    Post subject: Reply with quote

taki offtop, w dodatku pewnie niezgodny z regulaminem, ale nie moge sie powstrzymac ;) raku, dlaczego 'powered by archlinux' ? :twisted: :)
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Wed Aug 23, 2006 4:28 pm    Post subject: Reply with quote

psycepa wrote:
taki offtop, w dodatku pewnie niezgodny z regulaminem, ale nie moge sie powstrzymac ;) raku, dlaczego 'powered by archlinux' ? :twisted: :)

bo ten... no... tego... ekhm, ekhm... eeeee... no... więc...
może inaczej: bo po prostu powered by Archlinux

8)
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
arsen
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 1803
Location: Tychy, Poland

PostPosted: Wed Aug 23, 2006 4:38 pm    Post subject: Reply with quote

Raku wrote:
psycepa wrote:
taki offtop, w dodatku pewnie niezgodny z regulaminem, ale nie moge sie powstrzymac ;) raku, dlaczego 'powered by archlinux' ? :twisted: :)

bo ten... no... tego... ekhm, ekhm... eeeee... no... więc...
może inaczej: bo po prostu powered by Archlinux

8)

nie owijaj w bawełne :), wyrzuć to z siebie :lol:
Back to top
View user's profile Send private message
zbychuk
n00b
n00b


Joined: 12 Mar 2004
Posts: 30
Location: Poland

PostPosted: Wed Aug 23, 2006 5:24 pm    Post subject: Reply with quote

iptables -t mangle -a POSTROUTING -o eth1 -m mark --mark 0 -j CLASSIFY --set-class 1:3
Back to top
View user's profile Send private message
tuniek
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2005
Posts: 113
Location: Poland

PostPosted: Thu Aug 24, 2006 6:50 am    Post subject: Reply with quote

Niepoprawny podpis pod profilem.

Raku was moved to http://www.archlinux.fc.pl/


/droczę się :> /
_________________
"The reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." (George Bernard Shaw)
Back to top
View user's profile Send private message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 130

PostPosted: Thu Aug 24, 2006 7:57 am    Post subject: Reply with quote

Dzieki za pomoc. Faktycznie nie markowane pakiety maja mark 0. :)

BTW Jesli moge cos powiedziec to Linux ogolnie jest nieuzywalny, ale jak juz to tylko Gentoo. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) 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