SyntaxHighlighter

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, June 18, 2017

Forwarding Ports with IPTables

to use IPTables to forward ports...

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

all this from http://richardfergie.com/redirect-port-80-to-a-different-port-using-iptables

and how to remove the routing

iptables -t nat --line-numbers -L
iptables -t nat -D PREROUTING [number]

Thursday, June 28, 2012

Useful *nix Command - Finding Large Files


from Dave Turanski...


find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'