[LARTC] How i define my linux to act as simple router

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1C647.A9F64030
Content-Type: text/plain;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

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  =20
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=20
sincerly
Juda B Barnes




------=_NextPart_000_0007_01C1C647.A9F64030
Content-Type: text/html;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Here is a short brief on my =
network</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My network have both Public IP Address =
and Private=20
iP Address</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For this example My Public IP Addresses =
are=20
194.90.1.x&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>And my private IP Addresses are=20
192.168.0.x</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Linux A - IP Address 194.90.1.253 Work =
as Default=20
Gateway of my&nbsp; public IPs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am using IPTABLES to manage access list =
and=20
firewalls</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Workstation&nbsp;B - IP Address =
194.90.1.1&nbsp;=20
With Default Gate 194.90.1.253</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; Is=20
able to ping the Internet via eth0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Workstation C - IP Address =
192.168.0.1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I Want Workstation B Will be able to =
PING the=20
private network,&nbsp;&nbsp; so i have set up on Linux A</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>eth0:1&nbsp;&nbsp; with IP Address=20
192.168.0.5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* i have sent ping from Workstation B =
to=20
192.168.0.5&nbsp;&nbsp;&nbsp;&nbsp; And i have got echo =
reply.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>* Also ping from Linux A with the new =
IP Address=20
(192.168.0.5)&nbsp; to Workstation C gets echo reply.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The only thing that i have left is to =
set up=20
routed&nbsp;&nbsp; to make&nbsp;&nbsp; packets that come from eth0 will=20
forward</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to eth0 ,&nbsp;&nbsp; Yes thats the =
same interface=20
i know ;-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How Will i do that </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>sincerly</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Juda B Barnes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0007_01C1C647.A9F64030--




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux