My Server has two NIC, One is connected to the Internet Service provider with dhcp ip (dynamically change) given by ISP and other NIC is connected with local Switch with 192.168.1.1 IP. Now I want to set up network with such that computers connected with LAN can connect Internet through server. Server will be work as a router. How should I make such configuration that All traffic passed by NIC 2 within a single IP and ported at IP address of NIC 1 which is Dynamically given by My ISP?
Thanks in advance.
You may also want to look at NAT Setup in Ubuntu Server
1Source:NAT configuration with iptables in Ubuntu
Easy way is to install Firestarter firewall and use wizard to share your internet connection.