What is NAT ?
network address translation (NAT, also known as network masquerading or IP-masquerading) involves re-writing the source and/or destination addresses of IP packets as they pass through a router or firewall. Most systems using NAT do so in order to enable multiple hosts on a private network to access the Internet using a single public IP address (see gateway). According to specifications, routers should not act in this way, but many network administrators find NAT a convenient technique and use it widely. Nonetheless, NAT can introduce complications in communication between hosts.
First, activate IP forwarding in /etc/sysctl.conf and add the following line
# Enable packet forwarding
net.ipv4.ip_forward = 1
If you have already this line just uncomment
Now you need to restart your networking services using the following command
#/etc/init.d/networking restart
Now you need to activate NAT itself in /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.254
netmask 255.255.255.0
network 192.168.1.255
up iptables -t nat -A POSTROUTING -o $IFACE -j MASQUERADE
Now you need to restart your networking services using the following command
#/etc/init.d/networking restart
Disable IPv6 support on Debian
IPv6 is still not widely accepted and even less used. Many networked applications in Debian are enabling IPv6 support anyway, which result in a drop in performance and longer delays in day-to-day use.
To disallow ipv6 kernel module autoloading, deactivate it in modutils or module-init-tools in /etc/modprobe.d/aliases.
To disable IPv6 name resolution in Firefox or other Gecko-based browsers, change the following option to true
network.dns.disableIPv6
If you are interested in debian IPV6 Project check here
Incoming search terms:
- debian nat (135)
- nat debian (96)
- debian enable nat (21)
- enable nat debian (15)
- nat en debian (14)
- debian disable ipv6 (13)
- debian nat enable (13)
- install nat debian (8)
- nat for debian (6)
- enable nat on debian (6)
-
Michael G
-
kajax
