Restriction Log

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

Moderator: Moderators

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

Restriction Log

Postby iincitr » Sat Jan 05, 2019 4:53 pm

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: 4347
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Restriction Log

Postby ispyisail » Sat Feb 02, 2019 6:26 am

GUI or Command line?

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

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

Re: Restriction Log

Postby iincitr » Sat Feb 02, 2019 8:07 am

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: 4347
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Restriction Log

Postby ispyisail » Sat Feb 02, 2019 1:47 pm

Its possible that nobody knows.

I would have a look at logread

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

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

Re: Restriction Log

Postby Lantis » Sat Feb 02, 2019 6:47 pm

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.
WRT32X on 1.11.X
Various ar71xx/mvebu boards in a constant state of flux
www.lantisproject.com for custom builds and other projects
www.lantisproject.com/gargoyle_ispyisail/ for the latest releases


Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 4 guests