Configure Nat Routing Between Two Network Interfaces
Network Address Translation (Nat) help to route the request through the gateway. It will help the system administrator to control the traffic over the network and monitor the users usage.
Nat is done using two Ethernet interfaces and basically the public address is accessible by the internal users, but the public people wont able to access the internal network with out the help of system administrator.
This help to prevent the access to internal network with our administrator permission and increase the security.
This is done with the help of iptables and ip forwarding on kernel parameter.
change the parameter,
net.ipv4.ip_forward = 1
and restart the network. The value can see on runing the command
2. The iptable command used to make it done is,
#iptables -t nat -A POSTROUTING -o eth0 -j
where eth0 is the external network.It may vary depend on the interface naming.
command will configure nat between public and internal interfaces.
Save the iptables rule using the command,
Configure Apf with Nat
Apf can able to configure to make the nat working. We need to edit the post routing rule on apf configuration file.
# vi /etc/apf/postroute.rules
and add the same line
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
save and exit and reload apf
Latest posts by Melbin Mathew (see all)
- VMware virtual IDE to virtual SCSI hard disk conversion steps – Windows XP - August 6, 2015
- Stop Error “CRITICAL_STRUCTURE_CORRUPTION - August 5, 2015
- Error installing Windows server role and feature required for the Exchange 2010 - December 3, 2013