Re: Remote login via modem

2007-05-20 Thread Ian Smith
On Sat, 19 May 2007 12:45:35 -0700 Lou Katz [EMAIL PROTECTED] wrote:
  On Sat, May 19, 2007 at 07:49:46AM +0200, Nikola Lecic wrote:

Sorry Nicola, no cc, your email address wasn't quoted ..

   On Sat, 19 May 2007 11:49:47 +1000
   Ivan Carey [EMAIL PROTECTED] wrote:
   
Hello,
I would like to be able to access my network remotely via modem
access.

What I am trying to achieve is this. At the office I have a server,
this server is Not connected to the Internet, I need to be able to
Administer it from my Home office, so I am thinking that I need to
access it via a serial modem.
What do I need to do to achieve this.
   
   You need getty(8) or /usr/ports/comms/mgetty+sendfax. Please read
   
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dialup.html
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html

  This shows how to connect to some other ISP with ppp. I need to setup MY 
  machine
  to accept INCOMING PPP, and can't find any doc (though I could have 
  overlooked it).
  Pointers to setup of incoming ppp dialin greatly appreciated.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html

Assuming you're using userppp rather than pppd.  The above is a useful
outline, but for some detail I include the dialup configuration from an
old server here.  Note this was for FreeBSD 2.2.6 and a few things have
changed, like the names of ttydX and cuaaX, but maybe it'll help.

/etc/ttys:

[.. normal stuff, then ..]
# dialout: cuaa0 used by ppp
ttyd0   /usr/libexec/getty std.57600  vt100   off insecure
# dialups:
ttyd1   /usr/local/sbin/mgettyvt100   on insecure
ttyd2   /usr/local/sbin/mgettyvt100   on insecure
ttyd3   /usr/local/sbin/mgettyvt100   on insecure

/usr/local/etc/mgetty+sendfax/login.config:

# ppp logs in (utmp) once authenticated
/AutoPPP/ - -   /etc/ppp/ppp-pap-dialup @
#
#% 4/9/4 deny all members for direct (non-ppp, terminal) logins except ..
smithi  smithi  smithi  /usr/bin/login @
greggreggreg/usr/bin/login @
*   -   -   /usr/bin/false @

/usr/local/etc/mgetty+sendfax/mgetty.config:

port ttyd1
debug 4
fax-id 00 00 00
speed 115200
switchbd 19200
direct NO
blocking NO
port-owner uucp
port-group dialer
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 400
data-only yes
fax-only NO
modem-type data
# Spirit 336L (Rockwell chipset)
init-chat  ATS0=0Q0D2C1S95=47 OK
modem-check-time 600
rings 2
answer-chat  ATA CONNECT \c \r
answer-chat-timeout 60
autobauding no
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @ login:
login-time 60
diskspace 2048
notify faxadmin
fax-owner uucp
fax-group dialer
fax-mode 0660

port ttyd2
[.. ditto; port ttyd3 ditto, modulo init-chat for other type modems ..]

/etc/ppp/ppp-pap-dialup:

#!/bin/sh
#% ppp-pap-dialup 28Jun98, test version, adapted from:
#  ppp-shell 25May98 smithi from 2.2.5 handbook, PPP Configuration
IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'`
# CALLEDAS=$IDENT
TTY=`tty`
IDENT=`basename $TTY`
/usr/sbin/ppp -direct pap$IDENT

/etc/ppp/ppp.conf:

default:
  allow users *
  enable throughput
  set log phase chat connect carrier link ipcp ccp ID0 TUN
  set speed 115200
  disable lqr
  deny lqr
  set timeout 1200

# dialout line: (4Jul98) =

telstra:
  set log +command
  allow users root smithi greg
  allow mode auto ddial dedicated background
  set server 3000
  set device /dev/cuaa0
  set timeout 0
# rest of dialout config not shown ..

# dialup lines: =

papttyd1:
  set server 3001
  allow users *
# force use of pap, use /etc/passwd auth
  enable pap
  enable passwdauth
# for broken linux pppd callers :(
  disable pred1
  deny pred1
  disable deflate
  deny deflate
#
  set ifaddr x.y.z.145 x.y.z.161 255.255.255.255
  delete ALL
# 1may99 keepalive filters
  set afilter 0 deny icmp
  set afilter 1 deny tcp dst eq 110
  set afilter 2 deny tcp src eq 110
# [.. various others ..]
  set afilter 15 deny udp src eq 53
  set afilter 16 deny udp dst eq 53
# last allowed is rule 19
  set afilter 17 permit 0/0 0/0

papttyd2:
  set server 3002
  allow users *
# [.. ditto ..]
  set ifaddr x.y.x.146 x.y.z.162 255.255.255.255
  delete ALL

# [ ditto papttyd3: ..]

Cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem [coda]

2007-05-20 Thread Ian Smith
I'd address this also to [EMAIL PROTECTED], but my prior message evoked:

On Sun, 20 May 2007 16:02:27 +1000 (EST), Mail Delivery Subsystem wrote:

  The original message was received at Sun, 20 May 2007 16:02:09 +1000 (EST)
  from [EMAIL PROTECTED]
  
 - The following addresses had permanent fatal errors -
  [EMAIL PROTECTED]
  
 - Transcript of session follows -
  ... while talking to mail.metron.com.:
   RCPT To:[EMAIL PROTECTED]
   571 5.0.0 Local Policy REFUSAL: Confirmed network-wide opt-out
  554 [EMAIL PROTECTED]... Service unavailable

I've not seen a 'Confirmed network-wide opt-out' SMTP response before. 

Any idea what it indicates, apart from the obvious rejection of mail?

Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Remote login via modem

2007-05-20 Thread Bob
Here is a step by step install guide to do what you asked about.
5.6 Configuring User PPP to accept inbound modem calls
You may be interested in reading the complete FreeBSD  install guide at
www.a1poweruser.com




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ivan Carey
Sent: Friday, May 18, 2007 9:50 PM
To: freebsd-questions@freebsd.org
Subject: Remote login via modem

Hello,
I would like to be able to access my network remotely via modem access.

What I am trying to achieve is this. At the office I have a server, this
server is Not connected to the Internet, I need to be able to Administer
it from my Home office, so I am thinking that I need to access it via a
serial modem.
What do I need to do to achieve this.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Remote login via modem

2007-05-20 Thread Bob
Had to resend this post because link got lost
Here is a step by step install guide to do what you asked about.
5.6 Configuring User PPP to accept inbound modem calls

You may be interested in reading the complete FreeBSD  install guide at
www.a1poweruser.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ivan Carey
Sent: Friday, May 18, 2007 9:50 PM
To: freebsd-questions@freebsd.org
Subject: Remote login via modem

Hello,
I would like to be able to access my network remotely via modem access.

What I am trying to achieve is this. At the office I have a server, this
server is Not connected to the Internet, I need to be able to Administer
it from my Home office, so I am thinking that I need to access it via a
serial modem.
What do I need to do to achieve this.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Remote login via modem

2007-05-20 Thread Bob
Had to resend this post because link got lost.
Here is a step by step install guide to do what you asked about.


5.6 Configuring User PPP to accept inbound modem calls


You may be interested in reading the complete FreeBSD  install guide at
www.a1poweruser.com





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Remote login via modem

2007-05-20 Thread Bob
Had to resend this post because link got lost.
Here is a step by step install guide to do what you asked about.

http://freebsd.a1poweruser.com:6088/05.06-PPP_accept_incoming_calls.htm


You may be interested in reading the complete FreeBSD  install guide at

www.a1poweruser.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ivan Carey
Sent: Friday, May 18, 2007 9:50 PM
To: freebsd-questions@freebsd.org
Subject: Remote login via modem

Hello,
I would like to be able to access my network remotely via modem access.

What I am trying to achieve is this. At the office I have a server, this
server is Not connected to the Internet, I need to be able to Administer
it from my Home office, so I am thinking that I need to access it via a
serial modem.
What do I need to do to achieve this.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem [coda] - PPP

2007-05-20 Thread Lou Katz
On Sun, May 20, 2007 at 05:54:58PM +1000, Ian Smith wrote:
 I'd address this also to [EMAIL PROTECTED], but my prior message evoked:
 
 On Sun, 20 May 2007 16:02:27 +1000 (EST), Mail Delivery Subsystem wrote:
 
   The original message was received at Sun, 20 May 2007 16:02:09 +1000 (EST)
   from [EMAIL PROTECTED]
   
  - The following addresses had permanent fatal errors -
   [EMAIL PROTECTED]
   
  - Transcript of session follows -
   ... while talking to mail.metron.com.:
RCPT To:[EMAIL PROTECTED]
571 5.0.0 Local Policy REFUSAL: Confirmed network-wide opt-out
   554 [EMAIL PROTECTED]... Service unavailable
 
 I've not seen a 'Confirmed network-wide opt-out' SMTP response before. 
 
 Any idea what it indicates, apart from the obvious rejection of mail?
 
 Ian

I set my sendmail to issue that in response to some spammer foolishness about
opt-in and opt-out and their bogus assertion regarding opting-out of their
mailings. What is more to the point is that your message was rejected because
your connecting domain, lnk.telstra.net was entered into my local, private,
set-and-forget blocklist a long time ago for sending spam.

Thank you for attempting to reply to my question, though.
[The telstra.net entry in my blocklist has also been removed].


The pointers sent regarding incoming PPP have veen very useful.
The last time I set this up I was on a BSDI system, and the protocol was 
handled by
pppd, not the ppp client. I kept looking for pppd related info, and didn't look 
at
the (newer) ppp client pages.

 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
-=[L]=-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Nikola Lecic
On Sat, 19 May 2007 11:49:47 +1000
Ivan Carey [EMAIL PROTECTED] wrote:

 Hello,
 I would like to be able to access my network remotely via modem
 access.
 
 What I am trying to achieve is this. At the office I have a server,
 this server is Not connected to the Internet, I need to be able to
 Administer it from my Home office, so I am thinking that I need to
 access it via a serial modem.
 What do I need to do to achieve this.

You need getty(8) or /usr/ports/comms/mgetty+sendfax. Please read

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dialup.html
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Wojciech Puchar


What I am trying to achieve is this. At the office I have a server, this 
server is Not connected to the Internet, I need to be able to Administer it 
from my Home office, so I am thinking that I need to access it via a serial 
modem.

What do I need to do to achieve this.




man getty, put the right line in inittab and gettytab, and configure your 
modem to answer calls - you will get terminal access.


other metod - use ppp to make IP connection to modem on password.


second might me less efficient in case of slow modem, remote work will be 
slower

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Lou Katz
On Sat, May 19, 2007 at 07:49:46AM +0200, Nikola Lecic wrote:
 On Sat, 19 May 2007 11:49:47 +1000
 Ivan Carey [EMAIL PROTECTED] wrote:
 
  Hello,
  I would like to be able to access my network remotely via modem
  access.
  
  What I am trying to achieve is this. At the office I have a server,
  this server is Not connected to the Internet, I need to be able to
  Administer it from my Home office, so I am thinking that I need to
  access it via a serial modem.
  What do I need to do to achieve this.
 
 You need getty(8) or /usr/ports/comms/mgetty+sendfax. Please read
 
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dialup.html
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html
 

This shows how to connect to some other ISP with ppp. I need to setup MY machine
to accept INCOMING PPP, and can't find any doc (though I could have overlooked 
it).
Pointers to setup of incoming ppp dialin greatly appreciated.


 Nikola Le??i??
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Thanks
-- 
-=[L]=-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Boris Samorodov
On Sat, 19 May 2007 12:45:35 -0700 Lou Katz wrote:
 On Sat, May 19, 2007 at 07:49:46AM +0200, Nikola Lecic wrote:

 I need to setup MY machine
 to accept INCOMING PPP, and can't find any doc (though I could have 
 overlooked it).
 Pointers to setup of incoming ppp dialin greatly appreciated.

man ppp
/INCOMING


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Nikola Lecic
On Sat, 19 May 2007 12:45:35 -0700
Lou Katz [EMAIL PROTECTED] wrote:

 On Sat, May 19, 2007 at 07:49:46AM +0200, Nikola Lecic wrote:
  On Sat, 19 May 2007 11:49:47 +1000
  Ivan Carey [EMAIL PROTECTED] wrote:
  
   Hello,
   I would like to be able to access my network remotely via modem
   access.
   
   What I am trying to achieve is this. At the office I have a
   server, this server is Not connected to the Internet, I need to
   be able to Administer it from my Home office, so I am thinking
   that I need to access it via a serial modem.
   What do I need to do to achieve this.
  
  You need getty(8) or /usr/ports/comms/mgetty+sendfax. Please read
  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dialup.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html
  
 
 This shows how to connect to some other ISP with ppp. I need to setup
 MY machine to accept INCOMING PPP, and can't find any doc (though I
 could have overlooked it). Pointers to setup of incoming ppp dialin
 greatly appreciated.

They point you to the right direction. To accept incoming calls via
phone line, install mgetty+sendfax, and edit config files
in /usr/local/etc/mgetty+sendfax, especially dialin.conf and
login.conf. Besides that, read pppd(8) thoroughly.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote login via modem

2007-05-19 Thread Boris Samorodov
re-posting due to incorrect editting (sorry Nikola Lecic)

On Sat, 19 May 2007 12:45:35 -0700 Lou Katz wrote:

 I need to setup MY machine
 to accept INCOMING PPP, and can't find any doc (though I could have 
 overlooked it).
 Pointers to setup of incoming ppp dialin greatly appreciated.

man ppp
/INCOMING


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]