I have two NIC Card in CentOS Operating System.

Configuration :

(Modem)Router IP = 192.168.1.254
eth0 : 192.168.1.2 ------ LAN IP
Mask : 255.255.255.0
GW : 192.168.1.2
eth1 : 210.211.251.230 ---- Public ID [Static IP]
MASK : 255.255.255.0
GW : 210.251.251.1


I want to transfer the network traffic eth1[Public IP] to eth0 [Local IP] . so the windows host can also connected to Internet connection.


I have also Enable Forward_IPV4.
I Disable Firewall Using This Command : chkManager iptables off

Problem IS How Can I Routing table?

IS There Any Problem Regrding Firewall?

Is Any Extra Configuration Require?

Please Give Suggestion for Routing Table For This Configuration.

thanks

Recommended Answers

GW for eth0 should be 192.168.1.254. I dont' understand what you mean by:
I want to transfer the network traffic eth1[Public IP] to eth0 [Local IP] . so the windows host can also connected to Internet connection.

Jump to Post

All 4 Replies

GW for eth0 should be 192.168.1.254. I dont' understand what you mean by:
I want to transfer the network traffic eth1[Public IP] to eth0 [Local IP] . so the windows host can also connected to Internet connection.

first of all i want to know is your windows host is in 192.168.1.0 network ? if so then as you already forwarded ip now what you have to do is set the gateway and dns ip for windows host as follows:
gateway : your lan ip of linux host
dns: your public ip address

Hi chiragsathit,
Are you able to ping the router's i.p(192.168.1.254) and the Windows machine from the Cent-OS machine? And also, help us to understand your setup. Here is how I understand it. Windows machine---->Router(in bridge mode)---->Cent-OS machine--->Internet Link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.