Darius Rudzika wrote:
> Last few month I'm analyzing Linux firewaling capabilities but I'm
> missing some of them. I'm talking about NAT, how i can translate my
> internal IP's to external ones
> for eample 192.168.0.1 -> 188.8.131.52. . in case i have my owne C class adresses..
First of all have a look at the "IPChains" and "Linux IP Masquerade mini" HOWTOs.
Here's what you want with ipchains (I suppose you have your interfaces ifconfig'ed):
# Set default forwarding policy to DENY
ipchains -P forward DENY
# Masquerade the 192.168.1.0 network
ipchains -A forward -s 192.168.1.0/24 -j MASQ
But I really advice you to read the HOWTOs...
~~~~ Hiroshima 45, Tchernobyl 86, Window$ 00
- From: Darius Rudzika <firstname.lastname@example.org>