Sunday, July 8, 2007

Convert a GNU/Linux PC in a router

For converting a simple computer with two interfaces (or more) in a router, it's necessary just to type two sentences in a console:

echo 1 > /proc/sys/net/ipv4/ip-forward

iptables -t nat -A POSTROUTING -o <interface> -j MASQUERADE

1 comment:

  1. Interesting, but remember that a rooter can't filter all spam. One solution to this problem is a filter or a spam blocker. Many companies have designed filters for their customers. Many e-mail servers, especially spam arrest have a very good reputation to protect you up to 99% of spam e-mails, have their own spam blocker. There are several types of programs that can help you stop spam also.

    ReplyDelete