开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Cisco 2620 as PAD for a modem bank


 

So, like the other Dave, I've run into some unfortunate side effects of using a Cisco 26xx router.

I'm running IOS c2600-ipvoice-mz 12.3(9) so thankfully I've got support for the
? ? x25 route (...)(...).. xot dns \2.\1.x25.org
line in the config and my router is able to lookup other hosts.
I did have to configure the access-list to allow all IPs, otherwise it was rejecting all XOT traffic incoming and outgoing.

I have managed to set up a config where analog calls to WIC-2AM modems get presented a hidden menu that resembles the prompt you would get when connecting to TELENET/DATAPAC/TYMNET.
This allows you to connect to a short list of up to 17 predefined hosts (18 menu entries max, including the exit command).

Where I've hit a stumbling block is having a way to map incoming x25 calls to give remote access to my analog modems.
It would appear that "interface Async<x>" doesn't support "encapsulation x25" on the c2620 which as I understand would be needed for it to work how I want.

For now I guess I can use the cisco for outbound calls to a limited subset of TELEBAHN hosts. I'll have to figure out how to get inbound x25 calls routed to a modem bank hanging off another box eventually.
I'm sure someone has a better idea for this, and I'll probably replace the hidden menu on the c2620 with routing through something running on a linux box eventually.

-DK

relevant lines for the dial-in menu:

!
modemcap entry AUTOANSWER:MSC=S0=1:TPL=default
modemcap entry NOANSWER:MSC=S0=0:TPL=default
!
alias exec tpcbbs pad 78398001
!
menu tpcnet prompt '@'
menu tpcnet command 783980 tpcbbs
menu tpcnet command tpcbbs tpcbbs
menu tpcnet command exit exit
menu tpcnet default exit
menu tpcnet line-mode
menu tpcnet single-space
!
banner motd '

TPCNET
783 235 0$(line)A
'
!
line con 0
no motd-banner
!
line 1 4
exec-timeout 0 0
x25 subaddress line
vacant-message ''
modem Dialin
modem autoconfigure type AUTOANSWER
autocommand menu tpcnet
no activation-character
length 0
transport output pad telnet
autoselect timeout 1
autohangup
stopbits 1
speed 115200
flowcontrol hardware
!


john jones
 

Use the rotary command on the async port that will be your destination. ?I.E. ?rotary 99. ?This represents the last two positions in your 8 digit X25 address.?

Then use ip host and/or x25 host commands to express the first 6 digits.?

I can post an example later on.?

John




On Saturday, July 2, 2022, 1:51 AM, David Kuder <dkgrizzly@...> wrote:

So, like the other Dave, I've run into some unfortunate side effects of using a Cisco 26xx router.

I'm running IOS c2600-ipvoice-mz 12.3(9) so thankfully I've got support for the
? ? x25 route (...)(...).. xot dns \2.\1.x25.org
line in the config and my router is able to lookup other hosts.
I did have to configure the access-list to allow all IPs, otherwise it was rejecting all XOT traffic incoming and outgoing.

I have managed to set up a config where analog calls to WIC-2AM modems get presented a hidden menu that resembles the prompt you would get when connecting to TELENET/DATAPAC/TYMNET.
This allows you to connect to a short list of up to 17 predefined hosts (18 menu entries max, including the exit command).

Where I've hit a stumbling block is having a way to map incoming x25 calls to give remote access to my analog modems.
It would appear that "interface Async<x>" doesn't support "encapsulation x25" on the c2620 which as I understand would be needed for it to work how I want.

For now I guess I can use the cisco for outbound calls to a limited subset of TELEBAHN hosts. I'll have to figure out how to get inbound x25 calls routed to a modem bank hanging off another box eventually.
I'm sure someone has a better idea for this, and I'll probably replace the hidden menu on the c2620 with routing through something running on a linux box eventually.

-DK

relevant lines for the dial-in menu:

!
modemcap entry AUTOANSWER:MSC=S0=1:TPL=default
modemcap entry NOANSWER:MSC=S0=0:TPL=default
!
alias exec tpcbbs pad 78398001
!
menu tpcnet prompt '@'
menu tpcnet command 783980 tpcbbs
menu tpcnet command tpcbbs tpcbbs
menu tpcnet command exit exit
menu tpcnet default exit
menu tpcnet line-mode
menu tpcnet single-space
!
banner motd '

TPCNET
783 235 0$(line)A
'
!
line con 0
no motd-banner
!
line 1 4
exec-timeout 0 0
x25 subaddress line
vacant-message ''
modem Dialin
modem autoconfigure type AUTOANSWER
autocommand menu tpcnet
no activation-character
length 0
transport output pad telnet
autoselect timeout 1
autohangup
stopbits 1
speed 115200
flowcontrol hardware
!


john jones
 

开云体育

Would you mind sharing your menu configuration section, obscuring anything that should be obscured?

?

Thanks!

?

John

?

From: [email protected] <[email protected]> On Behalf Of David Kuder
Sent: Friday, July 1, 2022 11:29 PM
To: [email protected]
Subject: [X.25] Cisco 2620 as PAD for a modem bank

?

So, like the other Dave, I've run into some unfortunate side effects of using a Cisco 26xx router.

I'm running IOS c2600-ipvoice-mz 12.3(9) so thankfully I've got support for the
? ? x25 route (...)(...).. xot dns \2.\1.x25.org
line in the config and my router is able to lookup other hosts.
I did have to configure the access-list to allow all IPs, otherwise it was rejecting all XOT traffic incoming and outgoing.

I have managed to set up a config where analog calls to WIC-2AM modems get presented a hidden menu that resembles the prompt you would get when connecting to TELENET/DATAPAC/TYMNET.
This allows you to connect to a short list of up to 17 predefined hosts (18 menu entries max, including the exit command).

Where I've hit a stumbling block is having a way to map incoming x25 calls to give remote access to my analog modems.
It would appear that "interface Async<x>" doesn't support "encapsulation x25" on the c2620 which as I understand would be needed for it to work how I want.

For now I guess I can use the cisco for outbound calls to a limited subset of TELEBAHN hosts. I'll have to figure out how to get inbound x25 calls routed to a modem bank hanging off another box eventually.
I'm sure someone has a better idea for this, and I'll probably replace the hidden menu on the c2620 with routing through something running on a linux box eventually.

-DK

relevant lines for the dial-in menu:

!
modemcap entry AUTOANSWER:MSC=S0=1:TPL=default
modemcap entry NOANSWER:MSC=S0=0:TPL=default
!
alias exec tpcbbs pad 78398001
!
menu tpcnet prompt '@'
menu tpcnet command 783980 tpcbbs
menu tpcnet command tpcbbs tpcbbs
menu tpcnet command exit exit
menu tpcnet default exit
menu tpcnet line-mode
menu tpcnet single-space
!
banner motd '

TPCNET
783 235 0$(line)A
'
!
line con 0
no motd-banner
!
line 1 4
exec-timeout 0 0
x25 subaddress line
vacant-message ''
modem Dialin
modem autoconfigure type AUTOANSWER
autocommand menu tpcnet
no activation-character
length 0
transport output pad telnet
autoselect timeout 1
autohangup
stopbits 1
speed 115200
flowcontrol hardware
!


 

This is what it has currently grown to. The menu 'tpcnet' is what is presented to dial-up modem clients, so there is no menu text, just an @ prompt, as you would get from the likes of TELENET/DATAPAC/TYMNET services back when those were operating still. You had to know the host address you were connecting to, or its mnemonic for well known services. One difference is due to the limited nature of the cisco menus, I've left out the "C " at the beginning. Maybe I'll make an actual shell at some point and offload the menu system to a linux box.
I also added two other x25 routes to handle single digit subaddresses, as well as a default subaddress of 99 since that seems to be the de-facto rotary everyone is using as their main entry point.

I do have a rotary working now to the modems.
78323589 -> modem pool, currently the PBX is offline, so no dialtone. with the PBX online (and all the cables plugged in) you would be able to dial numbers in the 980-xxxx exchange and connect to other modems hanging off the PBX.

The full config minus sensitive bits and voip stuff (my C2620 is really a VG200 that has had the boot rom swapped out to unlock its full capabilities):

!
version 12.3
service pad to-xot
service pad from-xot
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname x25-vhsvr-com
!
boot-start-marker
boot-end-marker
!
logging buffered 100000 debugging
! enable secret ...
! enable password ...
!
username x25 password 0 x25
username x25 autocommand menu x25in
memory-size iomem 10
clock timezone Eastern -4
!
no aaa new-model
ip subnet-zero
ip cef
!
!
! ip domain name vhsvr.com
! ip host tpcbbs ...
! ip name-server ...
no ftp-server write-enable
!
modemcap entry AUTOANSWER:MSC=S0=1:TPL=default
modemcap entry NOANSWER:MSC=S0=0:TPL=default
!
x25 profile TELEBAHN dxe
?x25 version 1988
?x25 modulo 128
?x25 address 783235
?x25 win 4
?x25 wout 4
?x25 ips 1024
?x25 ops 1024
?x25 facility windowsize 10 10
?x25 facility packetsize 1024 1024
?x25 subscribe packetsize permit 32 1024 target 512 1024
?x25 subscribe windowsize permit 1 16 target 2 10
x25 routing
!
!
xot access-group 10 profile TELEBAHN
!
!
interface FastEthernet0/0
?ip address 192.168.1.2 255.255.255.0
?duplex auto
?speed auto
?no keepalive
?no mop enabled
!
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
no ip http server
!
access-list 10 permit any
!
menu offline title '
Sorry. That host is currently offline.'
menu offline prompt 'Press RETURN to continue.'
menu offline command q menu-exit
menu offline default q
menu offline single-space
!
menu tpcnet prompt '@'
menu tpcnet command 783227 tpcbbs
menu tpcnet command tpcbbs tpcbbs
menu tpcnet command 687111 jjspad
menu tpcnet command jj jjspad
menu tpcnet command exit exit
menu tpcnet command 78323594 multiz
menu tpcnet command multiz multiz
menu tpcnet default exit
menu tpcnet line-mode
menu tpcnet single-space
!
menu x25in title '
?
?
***
?
? ? ? Welcome to The Phone Company X.25 Gateway
?
? ? ? ? ? Type a number to select an option.
? ? ? ? ? ? ? ?Type Q to disconnect.
?
'
menu x25in prompt '>'
menu x25in text 1 The Phone Company BBS
menu x25in command 1 tpcbbs
menu x25in text 2 Star Wars
menu x25in command 2 starwars
menu x25in text 3 telehack.com
menu x25in command 3 telehack
menu x25in text 4 Multiplayer Zork
menu x25in command 4 multiz
menu x25in text 8 JJ's X.25 Host
menu x25in command 8 jjspad
menu x25in text 9 TPC Official Time
menu x25in command 9 sho clock
menu x25in command Q exit
menu x25in default Q
menu x25in single-space
!
x25 route (...)(...).. xot dns \2.\1.x25.org
x25 route (...)(...). xot dns \2.\1.x25.org
x25 route (...)(...) substitute-dest \1\299 xot dns \2.\1.x25.org
x25 host x25-vhsvr-com 783235
!
!
banner login '
You can login with username/password x25'
banner motd '
?
TPCNET
783 0$(line)A
'
alias exec jjspad pad 687111
alias exec tpcbbs menu offline
alias exec starwars telnet towel.blinkenlights.nl /quiet
alias exec telehack telnet telehack.com /quiet
alias exec multiz telnet tpcbbs 12000 /quiet
!
line con 0
?no motd-banner
?x25 subaddress 0
?length 0
?flowcontrol software
line 1 4
?exec-timeout 0 0
?x25 subaddress line
?vacant-message ''
?modem InOut
?modem autoconfigure type AUTOANSWER
?rotary 89
?autocommand? menu tpcnet
?no activation-character
?length 0
?transport input pad telnet
?transport output pad telnet
?autoselect timeout 1
?autohangup
?stopbits 1
?speed 115200
?flowcontrol hardware
line aux 0
line vty 0 4
?x25 subaddress line
?login local
?transport input telnet
?transport output all
!
! global parameters for all PAD connected lines
line vty 5 63
?exec-timeout 0 0
?vacant-message ''
?no login
?no activation-character
?transport input pad
?autohangup
!
! rotary group specific parameters follow
line vty 5 7
?no motd-banner
?rotary 90
?autocommand? show clock
line vty 8 31
?rotary 99
?login local
?autocommand? menu offline
! The x25 user profile overrides this line with menu x25in, I'm setting this so?all other users will get booted with host offline message if there isn't an override specified for them too.
!
! The rest of the incoming rotary groups are unauthenticated and bounce directly to other hosts
line vty 32 39
?rotary 91
?autocommand? tpcbbs
line vty 40 48
?rotary 92
?autocommand? starwars
line vty 49 55
?rotary 93
?autocommand? telehack
line vty 56 63
?rotary 94
?autocommand? multiz
!
!
end



john jones
 

开云体育

Thanks David !

?

John

?

From: [email protected] <[email protected]> On Behalf Of David Kuder
Sent: Sunday, July 3, 2022 2:22 AM
To: [email protected]
Subject: Re: [X.25] Cisco 2620 as PAD for a modem bank

?

This is what it has currently grown to. The menu 'tpcnet' is what is presented to dial-up modem clients, so there is no menu text, just an @ prompt, as you would get from the likes of TELENET/DATAPAC/TYMNET services back when those were operating still. You had to know the host address you were connecting to, or its mnemonic for well known services. One difference is due to the limited nature of the cisco menus, I've left out the "C " at the beginning. Maybe I'll make an actual shell at some point and offload the menu system to a linux box.
I also added two other x25 routes to handle single digit subaddresses, as well as a default subaddress of 99 since that seems to be the de-facto rotary everyone is using as their main entry point.

I do have a rotary working now to the modems.
78323589 -> modem pool, currently the PBX is offline, so no dialtone. with the PBX online (and all the cables plugged in) you would be able to dial numbers in the 980-xxxx exchange and connect to other modems hanging off the PBX.

The full config minus sensitive bits and voip stuff (my C2620 is really a VG200 that has had the boot rom swapped out to unlock its full capabilities):

!

version 12.3

service pad to-xot

service pad from-xot

service tcp-keepalives-in

service tcp-keepalives-out

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname x25-vhsvr-com

!

boot-start-marker

boot-end-marker

!

logging buffered 100000 debugging

! enable secret ...

! enable password ...

!

username x25 password 0 x25

username x25 autocommand menu x25in

memory-size iomem 10

clock timezone Eastern -4

!

no aaa new-model

ip subnet-zero

ip cef

!

!

! ip domain name vhsvr.com

! ip host tpcbbs ...

! ip name-server ...

no ftp-server write-enable

!

modemcap entry AUTOANSWER:MSC=S0=1:TPL=default

modemcap entry NOANSWER:MSC=S0=0:TPL=default

!

x25 profile TELEBAHN dxe

?x25 version 1988

?x25 modulo 128

?x25 address 783235

?x25 win 4

?x25 wout 4

?x25 ips 1024

?x25 ops 1024

?x25 facility windowsize 10 10

?x25 facility packetsize 1024 1024

?x25 subscribe packetsize permit 32 1024 target 512 1024

?x25 subscribe windowsize permit 1 16 target 2 10

x25 routing

!

!

xot access-group 10 profile TELEBAHN

!

!

interface FastEthernet0/0

?ip address 192.168.1.2 255.255.255.0

?duplex auto

?speed auto

?no keepalive

?no mop enabled

!

!

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.1.1

no ip http server

!

access-list 10 permit any

!

menu offline title '

Sorry. That host is currently offline.'

menu offline prompt 'Press RETURN to continue.'

menu offline command q menu-exit

menu offline default q

menu offline single-space

!

menu tpcnet prompt '@'

menu tpcnet command 783227 tpcbbs

menu tpcnet command tpcbbs tpcbbs

menu tpcnet command 687111 jjspad

menu tpcnet command jj jjspad

menu tpcnet command exit exit

menu tpcnet command 78323594 multiz

menu tpcnet command multiz multiz

menu tpcnet default exit

menu tpcnet line-mode

menu tpcnet single-space

!

menu x25in title '

?

?

***

?

? ? ? Welcome to The Phone Company X.25 Gateway

?

? ? ? ? ? Type a number to select an option.

? ? ? ? ? ? ? ?Type Q to disconnect.

?

'

menu x25in prompt '>'

menu x25in text 1 The Phone Company BBS

menu x25in command 1 tpcbbs

menu x25in text 2 Star Wars

menu x25in command 2 starwars

menu x25in text 3 telehack.com

menu x25in command 3 telehack

menu x25in text 4 Multiplayer Zork

menu x25in command 4 multiz

menu x25in text 8 JJ's X.25 Host

menu x25in command 8 jjspad

menu x25in text 9 TPC Official Time

menu x25in command 9 sho clock

menu x25in command Q exit

menu x25in default Q

menu x25in single-space

!

x25 route (...)(...).. xot dns \2.\1.x25.org

x25 route (...)(...). xot dns \2.\1.x25.org

x25 route (...)(...) substitute-dest \1\299 xot dns \2.\1.x25.org

x25 host x25-vhsvr-com 783235

!

!

banner login '

You can login with username/password x25'

banner motd '

?

TPCNET

783 0$(line)A

'

alias exec jjspad pad 687111

alias exec tpcbbs menu offline

alias exec starwars telnet towel.blinkenlights.nl /quiet

alias exec telehack telnet telehack.com /quiet

alias exec multiz telnet tpcbbs 12000 /quiet

!

line con 0

?no motd-banner

?x25 subaddress 0

?length 0

?flowcontrol software

line 1 4

?exec-timeout 0 0

?x25 subaddress line

?vacant-message ''

?modem InOut

?modem autoconfigure type AUTOANSWER

?rotary 89

?autocommand? menu tpcnet

?no activation-character

?length 0

?transport input pad telnet

?transport output pad telnet

?autoselect timeout 1

?autohangup

?stopbits 1

?speed 115200

?flowcontrol hardware

line aux 0

line vty 0 4

?x25 subaddress line

?login local

?transport input telnet

?transport output all

!
! global parameters for all PAD connected lines

line vty 5 63

?exec-timeout 0 0

?vacant-message ''

?no login

?no activation-character

?transport input pad

?autohangup
!
! rotary group specific parameters follow

line vty 5 7

?no motd-banner

?rotary 90

?autocommand? show clock

line vty 8 31

?rotary 99

?login local

?autocommand? menu offline
! The x25 user profile overrides this line with menu x25in, I'm setting this so?all other users will get booted with host offline message if there isn't an override specified for them too.

!
! The rest of the incoming rotary groups are unauthenticated and bounce directly to other hosts

line vty 32 39

?rotary 91

?autocommand? tpcbbs

line vty 40 48

?rotary 92

?autocommand? starwars

line vty 49 55

?rotary 93

?autocommand? telehack

line vty 56 63

?rotary 94

?autocommand? multiz

!

!

end

?