Restriction Log

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
iincitr
Posts: 36
Joined: Sun Sep 13, 2015 9:20 am
Location: turkey

Restriction Log

Post by iincitr »

Hi all

Is there any way to log/see restriction behavior ?

Thank you
Tp-link 1043ND v1.8 gargoyle 1.11.x thank you

Buffalo AirStation WZR-600DHP DD-WRT last version

High Speed Boadband Internet

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Restriction Log

Post by ispyisail »

GUI or Command line?

Most things with a bit of work can be achieved via command line.

iincitr
Posts: 36
Joined: Sun Sep 13, 2015 9:20 am
Location: turkey

Re: Restriction Log

Post by iincitr »

Cli but how

Thank you
Tp-link 1043ND v1.8 gargoyle 1.11.x thank you

Buffalo AirStation WZR-600DHP DD-WRT last version

High Speed Boadband Internet

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Restriction Log

Post by ispyisail »

Its possible that nobody knows.

I would have a look at logread

https://oldwiki.archive.openwrt.org/doc ... essentials

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Restriction Log

Post by Lantis »

You would need to create LOG jump entries in iptables.
For example a restriction rule which blocked port 80 on a device might look like

*not a real command*
iptables -dst 192.168.1.100 -src * -dport 80 -j DROP

If we wanted to log that event, immediately before it we add the same rule but it jumps to LOG
iptables -dst 192.168.1.100 -src * -dport 80 -j LOG
iptables -dst 192.168.1.100 -src * -dport 80 -j DROP

That’s the basic premise. To implement this in Gargoyle would be a bit of a chore, but an adventuring user could do it.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply