---------- Forwarded message ----------
From: nestling <[email protected]>
Date: 2014-12-16 17:35 GMT+03:00
Subject: Re: Bug#773280: openvpn-auth-radius: invalid `route add' command
on route without gateway
To: "Dr. Torge Szczepanek" <[email protected]>



2014-12-16 14:51 GMT+03:00 Dr. Torge Szczepanek <[email protected]>:
>
> Hello!
>

Hello


>
> Can you please be more verbosive? Which Radius Attribute are you referring
> to? Do you have a example config of your Radius Server, where you set the
> attribute. Can you please provide the resulting route string with and
> without your patch including logfiles?
>
> Greetings Torge
>

I wrote about Framed-Route field. In my case it is taken from SQL and look
like this:
  Framed-Route = 10.128.0.0/24

Logs without my patch:
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND ACCT: Get a command.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND ACCT: New User.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND ACCT: New user acct:
username: 2, interval: 0, calling station: XX.XX.XX.XX, commonname: 2,
framed ip: 172.122.0.2.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Get
ACCOUNTING_RESPONSE-Packet.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND ACCT: Start packet was
send.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND ACCT: User was added to
accounting scheduler.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Create route
string route add -net 10.128.0.0/24 gw  2> /dev/null.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Route route add
-net 10.128.0.0/24 gw  2> /dev/null could not set. Route already set or bad
route string.
Mon Dec 15 17:59:03 2014 RADIUS-PLUGIN: FOREGROUND: Accouting succeeded!


Logs with my patch:
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND ACCT: Get a command.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND ACCT: New User.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND ACCT: New user acct:
username: 2, interval: 0, calling station: XX.XX.XX.XX, commonname: 2,
framed ip: 172.121.0.2.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Get
ACCOUNTING_RESPONSE-Packet.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND ACCT: Start packet was
send.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND ACCT: User was added to
accounting scheduler.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Create route
string route add -net 10.128.0.0/24 gw 172.121.0.2 2> /dev/null.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: BACKGROUND-ACCT:  Add route to
system routing table.
Tue Dec 16 15:00:47 2014 RADIUS-PLUGIN: FOREGROUND: Accouting succeeded!

Reply via email to