[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Machine with private IP address on Internet (May be offtopic?)



- --neYutvxvOLaeuPCA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Bilal Muddassir forced the electrons to say:
> I have an Ethernet LAN and there is a LINUX machine with 4 other
> Windows hosts connected to it.
> The Windows hosts are 192.168.1.10 .11 .12 .13 and the LINUX NIC is
> 192.168.1.14
> LINUX box dials out to ISP and gets 203.128.3.113 on its dialup
> interface.
> Can TCP/IP traffic on the local LAN be routed to the dialup interface
> if the LINUX box is setup as router?

Ha! The very thing unix/linux is famous for - networking!

Here is the routing table on my linux machine.=20

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt If=
ace
127.0.0.2       0.0.0.0         255.255.255.255 UH     1500 0          0 sl0
203.94.227.17   0.0.0.0         255.255.255.255 UH     1500 0          0 pp=
p0
192.168.100.0   0.0.0.0         255.255.255.0   U      1500 0          0 et=
h0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo
0.0.0.0         0.0.0.0         0.0.0.0         U      1500 0          0 pp=
p0
0.0.0.0         0.0.0.0         0.0.0.0         U      1500 0          0 sl0

My LAN is 192.168.100.*, and 203.94.227.17 is the machine to which I connect
via ppp (MTNL).

Just set up the default gateway of the windows machines as the linux one, a=
nd
use the ip-* scripts to set up the routing table entries when the ppp link
goes up, and to delete them when it goes down.

Binand
- --=20
#include <stdio.h>                                   | Binand Raj S.
char *p =3D "#include <stdio.h>%cchar *p =3D %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

- --neYutvxvOLaeuPCA
Content-Type: application/pgp-signature

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjfxk8EACgkQP5kd5SKPESfEoQCeOlgZPqt9zVVwoCDIeF4vO6wB
4SYAn2c7b8+GVVS8dSMZLPJlnl407MAv
=TvA6
- -----END PGP SIGNATURE-----

- --neYutvxvOLaeuPCA--
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------