Highlighted
Regular Member
Posts: 405
Registered: ‎01-18-2017
Kudos: 132
Solutions: 13
Accepted Solution

Custom suspension page

We have several commercial accounts that do not meet the FCC definition of commercial so they are defined in UCRM as residential.

 

It is important for our residential clients to see their balance, but when our client's customers see the info it makes the client look bad. Is it possible to have a custom suspension page for these clients? 


Accepted Solutions
Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

No. Intentionally put your special customers into a special subnet and create the rule for the whole subnet. That way you only ned 2 rules.. (or one rule per subnet). There are no other wildcards to make rules dynamic... you would need to use iptables and ipset in order to work with a list of IPs, but don't do that. You can always do a rule per customer... but that would be painfully boring to manage. Pedro

View solution in original post

Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

By the way.

 

This rule only is triggered when the user's IP is in the BLOCKED_USERS group... UCRM adds or removes from the list as required.

 

It is automatic... you don't have to touch it.

 

Pedro

View solution in original post


All Replies
Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

Sure you can.

UCRM will only update the BLOCKED_USERS list on your router... it does NOT handle the NAT rules or translations of your router.

 

If you use an EdgeRouter, you can simply add an identical "Destination NAT Rule" before your current one (see photo).

 

In this new rule, specify the IP/Subnet of the customer you need to fall into a different portal. All packets from that IP will fall into that rule, while the rest of suspended IPs will fall in the original rule.

 

Point those fancy users to a different port/ip where you hosted their different suspended service portal. Just setup an additional site on your apache, or whatever you are using.

 

Cheers

Pedro

rules.png
Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

Sure you can.

UCRM will only update the BLOCKED_USERS list on your router... it does NOT handle the NAT rules or translations of your router.

 

If you use an EdgeRouter, you can simply add an identical "Destination NAT Rule" before your current one (see photo).

 

In this new rule, specify the IP/Subnet of the customer you need to fall into a different portal. All packets from that IP will fall into that rule, while the rest of suspended IPs will fall in the original rule.

 

Point those fancy users to a different port/ip where you hosted their different suspended service portal. Just setup an additional site on your apache, or whatever you are using.

 

Cheers

Pedro

rules.png
Regular Member
Posts: 405
Registered: ‎01-18-2017
Kudos: 132
Solutions: 13

Re: Custom suspension page

This would require us to update the router for each suspension? I was hoping for something more automatic.

Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

No. Intentionally put your special customers into a special subnet and create the rule for the whole subnet. That way you only ned 2 rules.. (or one rule per subnet). There are no other wildcards to make rules dynamic... you would need to use iptables and ipset in order to work with a list of IPs, but don't do that. You can always do a rule per customer... but that would be painfully boring to manage. Pedro
Member
Posts: 141
Registered: ‎05-26-2015
Kudos: 23
Solutions: 2

Re: Custom suspension page

By the way.

 

This rule only is triggered when the user's IP is in the BLOCKED_USERS group... UCRM adds or removes from the list as required.

 

It is automatic... you don't have to touch it.

 

Pedro

Regular Member
Posts: 405
Registered: ‎01-18-2017
Kudos: 132
Solutions: 13

Re: Custom suspension page

Gotcha, excellent. Thank you!!!