Posted on December 27th, 2007 by linux
Lets say that we would like to do port forwarding from our network interface eth0 on port 23 (telnet) to socket 10.0.0.1:23 (ip address:port):
iptables -t nat -I PREROUTING -p tcp -i eth0 –dport 111 -j DNAT –to 10.0.0.1:23
other example:
to do port forward from eth0 on port 456 to 192.168.0.1:788
iptables -t nat -I PREROUTING -p tcp [...]
Filed under: Administration, Networks, Security | No Comments »
Posted on December 26th, 2007 by linux
To block all outgoing traffic to the port 80 ( http, www, html ) use command:
iptables -A OUTPUT -p tcp –dport 80 -j DROP
To remove all iptables rules use command:
iptables -F
Sometimes you need to DROP all port 80 ( http, www, html ) traffic except certain IP address. In this case you ca run:
iptables -A [...]
Filed under: Administration, Linux, Networks, Security | No Comments »
Posted on December 21st, 2007 by linux
If your are concerned about your privacy in regards to internet browsing you may try use tor and the privoxy proxy server to hide your true identity while surfing the internet. The setup is very easy and is definitely worth to try.
First install tor and privoxy packages. On debian or ubuntu just simply type:
apt-get install [...]
Filed under: Administration, Security | No Comments »