PPPoE relay
Miroslav Lednicky, AVONET, s.r.o.
lednicky na avonet.cz
Úterý Říjen 6 13:53:32 CEST 2009
Dobry den,
diky za tip. Jeste jsem se na to dival podrobneji a nasel jsem
v RFC 2516 nasledujici:
A Relay-Session-Id TAG MUST NOT be added if the discovery packet
already contains one. In that case the intermediate agent SHOULD
use the existing Relay-Session-Id TAG. If it can not use the
existing TAG or there is insufficient room to add a Relay-
Session-Id TAG, then it SHOULD return a Generic-Error TAG to the
sender.
Takze teoreticky by to jit mohlo. Ale ve zdrojaku pppoe-relay pod
Linuxem, je jen:
/* We do not re-use relay-id tags. Drop the frame. The RFC says the
relay agent SHOULD return a Generic-Error tag, but this does not
make sense for PADI packets. */
Takze pod Linuxem smula, jedine, ze by to tam nekdo dopsal.
Preji hezky den.
Michal Rybarik napsal(a):
> Zdravim
>
> presne tak, relayovat sa moze iba raz, pretoze dalsi relay prepise
> relay-ID. V opacnom smere sa s tym jeden relay este vysporiada ako s
> ramcom ktory mu patri, druhy uz nie (nenajde tam svoe IDcko ktore tam
> zapisal). Na linuxe mate moznost pouzit ebtables a PPPoE ramce vybavit
> takto. Konkretne na jednom stroji mame hodene do br0 rozhranie na ktorom
> pouziva PPPoE koncentrator, a cez ebtables tam zahadzujeme vsetko okrem
> PPPoE ramcov. Takto nejak:
>
>
> /sbin/ebtables -N VLAN132_IN
> /sbin/ebtables -A FORWARD -i vlan132 -j VLAN132_IN
> /sbin/ebtables -A INPUT -i vlan132 -j VLAN132_IN
> /sbin/ebtables -A VLAN132_IN -p PPP_DISC -j ACCEPT
> /sbin/ebtables -A VLAN132_IN -p PPP_SES -j ACCEPT
> /sbin/ebtables -A VLAN132_IN -j DROP
>
> /sbin/ebtables -N VLAN132_OUT
> /sbin/ebtables -A FORWARD -o vlan132 -j VLAN132_OUT
> /sbin/ebtables -A OUTPUT -o vlan132 -j VLAN132_OUT
> /sbin/ebtables -A VLAN132_OUT -p PPP_DISC -j ACCEPT
> /sbin/ebtables -A VLAN132_OUT -p PPP_SES -j ACCEPT
> /sbin/ebtables -A VLAN132_OUT -j DROP
>
>
> M.R.
>
>
> Miroslav Lednicky, AVONET, s.r.o. wrote / napísal(a):
>> Dobry den,
>>
>> pouzivate nekdo pppoe server a pppoe relay na Linuxu?
>>
>> Potreboval bych zretezit dve PPPoE relay za sebou, ale nefunguje
>> mi to. Kdyz jsem se na to pak dival podrobneji, tak je mozne,
>> ze to fungovat nemuze. Relay si tam pridava nejake ID a nevim,
>> jestli ta dalsi uz nema za ukol to ignorovat.
>>
>> Da se to nejak obejit?
>>
>> Dekuji a preji hezky den,
>>
>> Miroslav Lednicky
>> _______________________________________________
>> Linux mailing list
>> Linux na linux.cz
>> http://www.linux.cz/mailman/listinfo/linux
>
> _______________________________________________
> Linux mailing list
> Linux na linux.cz
> http://www.linux.cz/mailman/listinfo/linux
>
>
--
Miroslav Lednicky, AVONET, s.r.o.
Další informace o konferenci Linux