Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 11078  / 1 Year ago, fri, february 17, 2023, 10:38:39

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.


More From » server

 Answers
2

Network-address-translation (NAT) on a Linux system with Iptables
rules so that the system can act as a gateway and provide Internet
access to multiple hosts on a local network using a single public IP
address. This is achieved by rewriting the source and/or destination
addresses of IP packets as they pass through the NAT system.



Minimum Requirements are any Linux OS, Iptables and Two Network
interface card.




  1. Configure eth0 for Internet with a Public IP

  2. Configure eth1 for LAN with a Private IP (Internal private network)

  3. DNS Configuration

  4. NAT configuration with IP Tables.....Read On1




You may also want to look at NAT Setup in Ubuntu Server



1Source:NAT configuration with iptables in Ubuntu


[#36060] Saturday, February 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skaing

Total Points: 462
Total Questions: 124
Total Answers: 113

Location: Nauru
Member since Thu, Feb 2, 2023
1 Year ago
skaing questions
;