LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2001, 10:10 PM   #1
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Rep: Reputation: 15
Telnet Admin of IP Masq and Samba Server; Good Idea?


I have two computers. One is a newer box running Win98 which I primarily use. The second is an older box running RedHat 7.1.
I already have the RedHat box setup as a DHCP server to a local network (my Win 98 box) and to IP Masq (It dials up using an analog modem). The problem is that I need to be able to make the RedHat box dial up and hang up on command from my Win98 box over the local network (The RedHat box is headless, no monitor or keyboard). Also, I am currently trying to configure the RedHat box to be a Samba server which means a lot of tweaking to get it how I want it. The switching of my monitor and keyboard is driving me nuts.
In order to play with Samba and command the box to dial and hang up, I want to set up a Telnet server on RedHat. I want to make it only run on the internal net and not on the dial up, security and all that. How would I go about doing this, or is there a better method?
I realize that diald can dial on net activity, but I also need to hangup at will, not time out. I have an external modem, so simply switching off the modem works well. After I switch it off and back on though, will Diald be able to dial up on more activity without having to mess with it?
 
Old 12-17-2001, 04:28 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
To only make things appear on the internal network you want to set your self up a firewall on your ppp interfaces, and use any available directives for your programs to tell them only to listen on your ethernet interfaces (Samba for example has the 'interfaces' option in smb.conf).

As for dialing and disconnecting, I started by using diald but got anoyed when it decicded to make random 3 day phone calls, so moved to Masqdialer (C-mserver). This way you get a nice dial and hangup button on your Windows/Mac/Linux/justAboutAnything box that connects via your linux Masq box to the web allowing you to bring the ppp interface up and down at will on the remote box. Have a look at http://cpwright.com/mserver/

cheers

Jamie...
 
Old 12-17-2001, 04:44 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
To set the telnet daemon to only allow connections from the inside you could use tcp wrappers.

In your inetd.conf file you should have a line like:
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

Then you should set your hosts.deny to either
ALL:ALL
or
in.telnetd:ALL

and the hosts.allow file should have something like:
in.telnetd:192.168.1.2

That is assuming you are using inetd, if you are using xinetd then the file /etc/xinetd.d/telnet should look something like this:

service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
only_from = 192.168.1.2
}

But you could also use firewall rules to only allow internal access like jharris mentioned.
 
Old 12-19-2001, 08:49 AM   #4
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Original Poster
Rep: Reputation: 15
I have telnet up and running, visible only from the internal network. I use wvdial to dial in and it dials up fine. When I log out of the telnet connection though, the dial up closes too!! Why is wvdial and pppd connected to that login? is there anyway to dissociate it so that I can close the telnet connection?
 
Old 12-19-2001, 09:08 AM   #5
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I never used a modem in linux so I don't know what the wvdial script does. But you could try running it with the nohup command. It should keep it running even if you log out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Approved - good idea or a stitch-up? rolandw Linux - Enterprise 9 08-18-2005 09:48 AM
linux masq server to linux masq server VPN rob_roman23 Linux - Networking 0 09-13-2003 09:54 AM
Slackware 9 Server, good idea?? ideas1 Slackware 14 06-24-2003 10:48 AM
Build Server - good idea? johan the olive Linux - Networking 4 02-27-2003 01:28 PM
samba and telnet server questions smurf Linux - Networking 2 05-17-2001 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration