fw-lua's Introduction
In order to use this you have to: aptitude install lua5.2 lua-posix or equivalent. So: requirements are lua-posix and lua5.2 or higher for now TODO: Package it as a normal package How this works: Your firewall description is nothing more than a set of :rules() for a set of objects. :rules() are essentially a set of functions that transform into a set of nested arrays and command line strings. These nested arrays are nothing more than a complex way of writing an iptables command line. These nested tables are parsed by fw/expand.lua . Something like this: {"/bin/echo","hello","dave"} will turn into exactly: /bin/echo hello dave. But: {"/bin/echo","hello",{"dave","john"}} will turn into: /bin/echo hello dave /bin/echo hello john {"/bin/echo","hello","dave","john"} will turn into: /bin/echo hello dave john BUT: {"/bin/echo","hello",{f=1,"dave","john"}} will also turn into: /bin/echo hello dave john a key f in an array means flatten. It will not explode the array. Now let's see what a :rules() does: net:rules() self:allow{proto.ssh} } turns into iptables --append "name ofthisnet" --destination-port 22 --jump ACCEPT net:rules() self:allow{proto.ssh,{ net1, net2 }} } iptables --append "name ofthisnet" --destination-port 22 --in-interface net1 --jump ACCEPT iptables --append "name ofthisnet" --destination-port 22 --in-interface net1 --jump ACCEPT etc... But it is what it is: a big shellscript generator, and as such we can also say: "nah" instead of proto or whatever. And it will output nah, and iptables will complain when you run it.
fw-lua's People
Forkers
tst2005forkfw-lua's Issues
sample of use ?
Hello,
I don't find any sample of use.
I only see interesting code... :D
Can you provide a sample ?
Best Regards
"Auto" Add protocols from /etc/services
Something like Protocol("...") ?
Intel Professional Workstation 486
I apologize for using GitHub issue tracker to contact you, but are you by chance the ard who wrote lp486e Ethernet support into the Linux kernel and had a page on the Intel Professional Workstation 486? I couldn't find a current email address to send this privately.
I've been in the process of restoring one of these for web series, and I was sorta hoping you might still have some of the old resources/files/etc from the Intel BBS, or could provide any sort of specific insights into this system? Information on this system is quite hard to come across, and the SCSI controller is, well, unique is a word I'd use.
Host object does not understand allow6
All objects understand allow6.
The Host object tries to be smart.
Add allow6 method and an allow4 method for those cases that you don't want them to get mixed up.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.