
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
Simple but opinionated manipulation of iptables for securing a server
npm install niptables
CAUTION: This sets a default DROP policy on any incoming packets. Make sure to properly allow your ssh port, or you may lock yourself out of your server
var nip = require('niptables');
nip
.allow({'port': '22'}) // Allow ssh from anywhere (tcp from '0.0.0.0/0')
.allow({
'protocol': 'tcp',
'port': '8080',
'cidr_blocks': ['10.0.0.0/16'] // or a list of explicit cidr blocks
})
.allow({
'interface': 'eth0', // allow traffic on eth0 interface
'port': '9999'
})
.allow({
'port': '8000:8001' // also can specify a range of ports
})
.apply(function(err){
if(err)
console.log(err);
});
For debugging you can terminate with print() instead of apply(cb) to see the exact rules that will be applied:
nip
.allow({'port': '22'}) // Allow ssh from anywhere (tcp from '0.0.0.0/0')
.print();
Output:
iptables -F
iptables --policy FORWARD ACCEPT
iptables --policy OUTPUT ACCEPT
iptables --policy INPUT DROP
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT --protocol tcp --dport 22 --source 0.0.0.0/0 --match state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT --protocol tcp --sport 22 --destination 0.0.0.0/0 --match state --state ESTABLISHED -j ACCEPT
iptables -I OUTPUT -o + -d 0.0.0.0/0 -j ACCEPT
iptables -I INPUT -i + -m state --state ESTABLISHED,RELATED -j ACCEPT
Notice that rules for all loopback traffic and all outgoing traffic are added by default
FAQs
Easy cross-platform iptables manipulation
We found that niptables demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.