Re: Route from LAN to Hercules

"Joe Monk [email protected] [hercules-390]" <[email protected]> Sun, 19 Jan 2020 08:36:05 -0600
Newsgroups gmane.comp.emulators.hercules390.general
Message-ID <CAPcd4G9j=XOGM5f1XQLOfumjFAz=qoAY-inVeXFfJStXkBVXYw@mail.gmail.com>
The port isnt 23. Its probably 3270. Hercules is setup for tn3270
connections on port 3270.

Joe

On Sun, Jan 19, 2020 at 8:25 AM Robin Atwood [email protected] [hercules-390]
<[email protected]> wrote:

>
>
> After a 10 years long hiatus I am messing around with Hercules again. I am
> running Herc on a headless server and want to run x3270/telnet/ssh from
> a laptop on the LAN. The server is 192.168.100.2 and the Herc
> guest has an LCS device with address 192.169.100.12. So on the server
> the routes are:
>
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 0.0.0.0 192.168.100.1 0.0.0.0 UG 3 0 0 enp5s0
> 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
> 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 enp5s0
> 192.168.100.12 0.0.0.0 255.255.255.255 UH 0 0 0 tap0
>
> The server has an iptables forwarding rule:
> ACCEPT tcp -- 0.0.0.0/0 192.168.100.12 tcp dpt:23
>
> If I shell into the server I can use telnet to get a session with the
> guest. On the laptop I created a route:
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 0.0.0.0 192.168.100.1 0.0.0.0 UG 20100 0 0 enp0s25
> 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
> 192.168.100.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s25
> 192.168.100.12 192.168.100.2 255.255.255.255 UGH 0 0 0 enp0s25
>
> and I can ping and traceroute the guest OS:
>
> # traceroute -n 192.168.100.12
> traceroute to 192.168.100.12 (192.168.100.12), 30 hops max, 60 byte packets
> 1 192.168.100.2 0.326 ms 0.295 ms 0.263 ms
> 2 192.168.100.12 0.624 ms 0.956 ms 1.736 ms
>
> But when I try x3270 or telnet the connection just hangs. What have I
> missed out?
>
> Thanks
> Robin
> --
>
> 
>