New L7 Pattern don't show in GUI

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

New L7 Pattern don't show in GUI

Post by cobra98 »

i added two patterns

facebook.pat
and
youtube.pat

and added them in /etc/l7-protocols/l7index

but even after reboot they don't show in the gui.

Maybe because the changes don`t show in /rom/etc/l7-protocols/?

For youtube i created youtube.pat like this:

youtube
^.+(youtube).*$

Any hints how to get them to work?

I use:
Gargoyle version 1.6.1
Gargoyle revision 87ce626
OpenWrt Attitude Adjustment branch
OpenWrt revision r40423

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: New L7 Pattern don't show in GUI

Post by n0pin »

As far as I can understand you created youtube.pat and facebook.pat in /etc/l7-protocols directory. What lines did you add to l7index file?

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: New L7 Pattern don't show in GUI

Post by cobra98 »

i edited l7index with vi and added
facebook and youtube.

#Gargoyle index file for Layer 7 patterns
#
#First word is the pattern name
#Remaining words are the descriptive equivalent that the user sees.
#
aim AIM
bittorrent BitTorrent
dns DNS
edonkey eDonkey
facebook
fasttrack FastTrack
ftp FTP
gnutella Gnutella
http HTTP
httpaudio HTTP Audio
httpvideo HTTP Video
ident Ident
imap IMAP E-Mail
irc IRC
jabber Jabber
msnmessenger MSN Messenger
......

like this

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: New L7 Pattern don't show in GUI

Post by n0pin »

You have to give them name in l7index file, like: facebook facebook, where second word is name, which you will see in Gargoyle GUI.

You don't have to reboot router to use new l7 protocols.

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: New L7 Pattern don't show in GUI

Post by cobra98 »

i put it like that but it doesn`t show in the gui even after reboot:

#Gargoyle index file for Layer 7 patterns
#
#First word is the pattern name
#Remaining words are the descriptive equivalent that the user sees.
#
aim AIM
bittorrent BitTorrent
dns DNS
edonkey eDonkey
facebook FACEBOOK
fasttrack FastTrack
ftp FTP
gnutella Gnutella
http HTTP
httpaudio HTTP Audio
httpvideo HTTP Video
ident Ident
imap IMAP E-Mail
irc IRC
jabber Jabber
msnmessenger MSN Messenger
ntp NTP
pop3 POP3
rtp VoIP Audio
skypeout Skype Out Calls
skypetoskype Skype to Skype
smtp SMTP E-Mail
ssh SSH Secure Shell
ssl SSL Secure Socket
vnc VNC
youtube YOUTUBE

ls from /etc/l7-protocols shows:

aim.pat http.pat msnmessenger.pat ssh.pat
bittorrent.pat httpaudio.pat ntp.pat ssl.pat
dns.pat httpvideo.pat oniondns.pat telnet.pat
edonkey.pat ident.pat pop3.pat vnc.pat
facebook.pat imap.pat rtp.pat youtube.pat
fasttrack.pat irc.pat skypeout.pat
ftp.pat jabber.pat skypetoskype.pat
gnutella.pat l7index smtp.pat

Post Reply