dergraf / packetscript Goto Github PK
View Code? Open in Web Editor NEWPacketScript enables the scripting of Linux Netfilter extensions using the Lua scripting language.
PacketScript enables the scripting of Linux Netfilter extensions using the Lua scripting language.
PacketScript ============ PacketScript enables the scripting of Linux Netfilter extensions using the Lua scripting language. The Lua scripts are loaded with the iptables command line tool. PacketScript can be easily extended (using C or Lua) to support a wide range of networking protocols. Compilation ----------- In order to compile PacketScript you must ... 1. ... install the Xtables-addons framework http://sourceforge.net/projects/xtables-addons/. 2. ... copy the LUA directory to the 'xtables-addons-1.xy/extensions' directory 3. ... add 'build_LUA=m' to the 'xtables-addons-1.xy/mconfig' file 3. ... add 'obj-${build_LUA} += LUA/' to the 'xtables-addons-1.xy/extensions/Mbuild' file 4. ... add 'obj-${build_LUA} += LUA/' to the 'xtables-addons-1.xy/extensions/Kbuild' file run configure and make in the 'xtables-addons-1.xy' directory
Hi,
i dont want to bother you, but.. sorry, but:
I am trying to establish (with my mostly limited skills as a coder) a regular-expression filter for strings on iptable on an openwrt-router.
my goal is to log inside the router requests on the internet/wan side of the router like this http://fqdn/?md5hash. without opening any ports - and than to process these logged/lua hashes as one-time trigger for further (bash/ash)-actions.
As far as i searched the web, there is only static-string matching, or gargoyle-os with weburl-derivation for regular-expression matching on iptables strings.
AND: Packetscript !
i am on development branch (OpenWrt Chaos Calmer r44223) of openwrt and there is still a installable module called "iptables-mod-lua". This must be Packetscript ?!?, as statet here: https://forum.openwrt.org/viewtopic.php?id=52405 with a link to your master-thesis.
It took a time to bring this all together from the web, and i am hoping to save some time with not all to much frustrating experiments, so i try to frankly ask you:
Do you think you can provide an example script how to do some string matching with packetscript in iptables-mod-lua?
Or show some re-ex-matching wit packetscript/lua as an expanded alternative to the static iptables -m string matching? Is it all possible?
i would be thankfully pleased, if you could consider to show a positive response to my questions.
Thankfully yours,
ozett
ps.: why dont you link your thesis here to the wiki? or put the pdf in this repository? if one googles "iptables lua" your repository is shown up on first places, but doku is somewhat behind in google rank..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.