Skip to contentSkip to conversation

How i define my linux to act as simple router

LARTC Juda Barnes 1 participant 1 message Mar 8, 2002

lore
Share & tools
lore
#0 lore raw

Here is a short brief on my network

My network have both Public IP Address and Private iP Address For this example My Public IP Addresses are 194.90.1.x And my private IP Addresses are 192.168.0.x

Linux A - IP Address 194.90.1.253 Work as Default Gateway of my public IPs
I am using IPTABLES to manage access list and firewalls

Workstation B - IP Address 194.90.1.1 With Default Gate 194.90.1.253
Is able to ping the Internet via eth0

Workstation C - IP Address 192.168.0.1

I Want Workstation B Will be able to PING the private network, so i have set up on Linux A

eth0:1 with IP Address 192.168.0.5

* i have sent ping from Workstation B to 192.168.0.5 And i have got echo reply.
* Also ping from Linux A with the new IP Address (192.168.0.5) to Workstation C gets echo reply.

The only thing that i have left is to set up routed to make packets that come from eth0 will forward
to eth0 , Yes thats the same interface i know ;-)

How Will i do that
sincerly
Juda B Barnes