All pastes #234209 Raw Edit

Anonymous

public shellscript v1 · immutable
·published 2006-11-02 11:04 UTC
rendered paste body
#!/bin/bashINTRAIP=192.168.0.249INTIP=124.125.147.58#Accept forwarding to intranetiptables -A FORWARD -d $INTRAIP -p tcp --dport 80 -j ACCEPT# Prerouting destination nat rule to local network from internet ipiptables -t nat -A PREROUTING -i eth0 -p tcp -d $INTIP --dport 80 -j DNAT --to-destination $INTRAIP # Postrouting source nat ruleiptables -t nat -A POSTROUTING -d $INTIP -p tcp --dport 80 -j SNAT --to-source $INTRAIP