Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Connections on incoming interface (vlan) - ppppoe #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Max Connections on incoming interface (vlan) - ppppoe #36

wants to merge 5 commits into from

Conversation

alexmontoanelli
Copy link

show sessions
ifname | origin | username | calling-sid | ip | ip6 | ip6-dp | state | uptime
--------+--------+----------+-------------------+-------------+-----------------+-------------+--------+----------
ppp0 | wlp4s0 | | 00:0c:42:af:8b:bf | 192.168.3.1 | fc00:0:1::17/64 | fc00:1::/48 | active | 00:08:41

This commit add a new collum to show-sessions, allowing see from what
interface/vlan the connection has been estabilhed
On interface at ppppoe section you can add this:
interface=eth0.10,max_connections=10

This will limit this interface at 10 clients, discarding new padi

If you set to 0, the interface will no accept new connections

If you set to -1, there will be no limit ( default )
add new command to set interface max_connection limit on the fly

pppoe interface limit <ifname> max_connections
@alexmontoanelli
Copy link
Author

Allow to specify max connections allowed on a interface.
We can put max-connections=10 on interface section of pppoe module,

Or adjust via cli with
pppoe interface limit <max_connections>

@alexmontoanelli alexmontoanelli changed the title See from what interface/vlan the ppp came from Max Connections on incoming interface (vlan) - ppppoe Jan 17, 2018
@gustavoghpf
Copy link

@xebd Could you take look at this? It is useful for managing PPPOE sessions

@hashbangtech
Copy link

+1

@svlobanov
Copy link
Contributor

You can limit session count using pado-delay (-1 value for specific count)

@hashbangtech
Copy link

You can limit session count using pado-delay (-1 value for specific count)

is it possible on per interface ?
thnx

@Neustradamus
Copy link

Dear @alexmontoanelli,

Can you open a PR at "good" place:

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants