Community discussions

MikroTik App
 
User avatar
sublimespot
newbie
Topic Author
Posts: 46
Joined: Sun Sep 11, 2005 2:00 am

Radius Access-Accept Filter-ID -> Create Dynamic NAT?

Tue Nov 01, 2005 6:06 am

Radius Access-Accept has the option Filter-Id which appears to allow a dynamic firewall rule.

Is is possible to have Radius respond to create a dynamic SRC-NAT and DST-NAT for that user?

Where can I get more information on how to use the radius Filter-Id option?
 
User avatar
butche
Trainer
Trainer
Posts: 430
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Tue Nov 01, 2005 7:30 am

Well, this is from the documentation:

Filter-Id - firewall filter chain name. It is used to make a dynamic firewall rule. Firewall chain name can have suffix .in or .out, that will install rule only for incoming or outgoing traffic. Multiple Filter-id can be provided, but only last ones for incoming and outgoing is used. For PPPs - filter rules in ppp chain that will jump to the specified chain, if a packet has come to/from the client (that means that you should first create a ppp chain and make jump rules that would put actual traffic to this chain). The same applies for HotSpot, but the rules will be created in hotspot chain


It comes from here: http://www.mikrotik.com/docs/ros/2.9/guide/aaa_radius

I am still a little unclear about how to interpret what it actually means. Perhaps Normis or Uldis will be able to clear it up?
 
User avatar
sublimespot
newbie
Topic Author
Posts: 46
Joined: Sun Sep 11, 2005 2:00 am

Wed Nov 02, 2005 6:14 am

Yes I also have the manual here. That bit of information in the documentation is very limited. I was hoping for more detailed information on how it is used and maybe a sample.
 
User avatar
bjohns
Member Candidate
Member Candidate
Posts: 271
Joined: Sat May 29, 2004 4:11 am
Location: Sippy Downs, Australia
Contact:

Thu Nov 03, 2005 2:08 am

Apparently not.

I had a quick look at it and all it does is dynamically create jump rules in the ppp (if available) and hotspot chains.

For example if Filter-ID == Restricted then there will be two rules placed in the ppp/hotspot chain that jump traffic for that user to the Restricted chain.

There is no way to link/create a dst/src-nat rule afaik.
 
User avatar
sublimespot
newbie
Topic Author
Posts: 46
Joined: Sun Sep 11, 2005 2:00 am

Thu Nov 03, 2005 7:14 am

I found a solution.

I used Framed-IP-Address to create a public IP address.
Used Framed-Route to create a dynamic route.

This essentially gives the customer a public IP and they still have to authenticate with hotspot. Perfect!