All pastes #630855 Raw Edit

Unnamed

public text v1 · immutable
#630855 ·published 2007-07-23 15:14 UTC
rendered paste body
#!/bin/bash

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.0.0.1/24 -j MASQUERADE
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -s 10.0.0.1/24 -j ACCEPT