Code Monkey home page Code Monkey logo

packetscript's Introduction

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

packetscript's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

packetscript's Issues

Sample Request? Would be pleased if you consider to publish here

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..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.