Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 07-08-2002, 10:06 PM   #1 (permalink)
chris65
Registered User
 
chris65's Avatar
 
Join Date: Jul 2002
Location: Tennessee USA
Posts: 6
chris65 is on a distinguished road
Cool ok, i need a script or an idea of a program to get me a....

i need a script or a idea for one to connect 2 computers together using one(as host) and the other as the cliant. The cliant needs to dial in to the host and be connected to the host internet connection. I know it can be done just dont know the right way to go about it. I should be able to do it with scripts and maybe one small application. any ideas??
chris65 is offline   Reply With Quote
Old 07-09-2002, 05:43 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
What are we talking about here ?

You want to make a connection program, where you can dialin to the machine, and connect, so the two machines create a local net ?

Or you want to use the solutions for dialin there allready exists and create a program, which will make a local net between the two machines uppon connection ?

Or you are talking about the joy of "Internet Connection Sharing" under windows ?
http://www.microsoft.com/windowsxp/p...orking/ics.asp
http://www.microsoft.com/windows2000...RRAS-Ch2_8.htm
http://www.microsoft.com/windows2000...share_conn.htm
http://www.microsoft.com/insider/articles/ics.asp
http://support.microsoft.com/default...;en-us;Q238135

Or ip-masq combined with dialin under *nix ?
http://www.tldp.org/HOWTO/ISP-Setup-RedHat-HOWTO.html
http://www.tldp.org/HOWTO/mini/Linux...ing/index.html
http://www.tldp.org/HOWTO/Intranet-Server-HOWTO.html
http://www.tldp.org/HOWTO/IP-Masquer...WTO/index.html
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-09-2002, 01:27 PM   #3 (permalink)
chris65
Registered User
 
chris65's Avatar
 
Join Date: Jul 2002
Location: Tennessee USA
Posts: 6
chris65 is on a distinguished road
well, I have looked at the links for linux, and still dont see what i want. Lets say you have 2 computers, one at home, and one at work. Any example will work as long as the 2 computers are at different locations. You would simply DIAL into the other computer, as a 56k modem can recieve a fax, data packet, or signal, then it should be possible for it to answer a call and have a script, call a program to hook up the connection to the internet on the computer "host". There is no reason i see at this time why this cant work. Also, if you did it at a home address, they you could in fact , share your internet connection with your laptop, or a friend. I can see possible applications for this if i can find something that works. any ideas??
chris65 is offline   Reply With Quote
Old 07-09-2002, 02:25 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
So what you're talking about, is a simple Linux server setup as a dialin server, where the machine dialing in, will make use of the internet connection the dialin server is using ?
Guess you missed this part:
http://www.tldp.org/HOWTO/ISP-Setup-...-4.html#ss4.12

Once the client makes the connection through dialin, there will be added a default route to the IP assigned on the ppp interface of the server servicing the IP assigned to the dialing client. If you then setup a firewall-masq, which handles routing of the client, to appear as comming from the dialin server it self, you'll have full access of the internet connection provided from the server.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-09-2002, 02:29 PM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
Moved this thread to "Linux/BSD" since it seemed more fitting..
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-09-2002, 02:38 PM   #6 (permalink)
chris65
Registered User
 
chris65's Avatar
 
Join Date: Jul 2002
Location: Tennessee USA
Posts: 6
chris65 is on a distinguished road
oh my god, how did i miss that !!! that is as close as i have seen yet. And it will allow me to dial up to a "host " computer and get internet access from it. COOL. thanks, dont guess i was paying attention. I only have 1 eye and the good one gets tired of reading so I prob. just skiped over it. thanks ya alot. I knew in my heart that linux would have something good for this. After all, linux has some of the best server software anywhere. thanks again.
chris65 is offline   Reply With Quote
Old 07-09-2002, 03:18 PM   #7 (permalink)
chris65
Registered User
 
chris65's Avatar
 
Join Date: Jul 2002
Location: Tennessee USA
Posts: 6
chris65 is on a distinguished road
ok, this is for redhat. I am using mandrake 8.2. I havent seen anything about it in my readme (yet still looking) but i wondered if it was for redhat only or would it work on all linux distro's.
chris65 is offline   Reply With Quote
Old 07-09-2002, 03:49 PM   #8 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
Quote:
Originally posted by chris65
I wondered if it was for redhat only or would it work on all linux distro's.
The description will work for any distro, just as long as its /etc/inittab, pppd and mgetty thats beeing used on the system. AFAIK Mandrake uses the same as RedHat.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-09-2002, 04:14 PM   #9 (permalink)
chris65
Registered User
 
chris65's Avatar
 
Join Date: Jul 2002
Location: Tennessee USA
Posts: 6
chris65 is on a distinguished road
went to add/remove programs (dont know why i didnt do it first. and found the mgetty is already in my system. cool, looks like i can do it with very little fuss. thanks, been a big help.
chris65 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Deadlock Detection Program Help... coolsc81 Standard C, C++ 2 10-26-2004 06:14 AM
Help on starting new program B00tleg Standard C, C++ 21 10-17-2004 12:58 PM


All times are GMT -8. The time now is 10:47 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting