<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PPP over SSH in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859274#M545833</link>
    <description>I don't understand why you would want to run IP/PPP over ssh over IP?&lt;BR /&gt;Ssh gives you an encrypted tunnel facility over your existing base IP link, using port forwarding (see -L and -R parameters in man ssh).&lt;BR /&gt;You can add IP addresses to existing interfaces with something like ifconfig lan1:1 &lt;BR /&gt;&lt;BR /&gt;Please explain what the shortfall is that causes you to need ppp and I might also learn something that could be useful.</description>
    <pubDate>Fri, 08 Sep 2006 09:46:59 GMT</pubDate>
    <dc:creator>Steve Lewis</dc:creator>
    <dc:date>2006-09-08T09:46:59Z</dc:date>
    <item>
      <title>PPP over SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859273#M545832</link>
      <description>Hi Folks,&lt;BR /&gt;&lt;BR /&gt;I have a fairly simple problem:&lt;BR /&gt;&lt;BR /&gt;I have a linux box in one network, and an HP-UX server (11i) in another. The only connection is via ssh.&lt;BR /&gt;&lt;BR /&gt;I would like to configure a one-2-one VPN connection between the two processors using PPP running over SSH.&lt;BR /&gt;&lt;BR /&gt;I have SSH configured fine, but I'm struggling to configure the HPUX side of the PPPD (I've not really dabbled with PPP before now).&lt;BR /&gt;&lt;BR /&gt;The connection is initiated from the Linux box and I have a script, taken from &lt;A href="http://www.faqs.org/docs/Linux-mini/ppp-ssh.html" target="_blank"&gt;http://www.faqs.org/docs/Linux-mini/ppp-ssh.html&lt;/A&gt; which I am trying to adapt for the HPUX side.&lt;BR /&gt;&lt;BR /&gt;The problem I have is that the How-to was written for running ppp over ssh between two linux boxes. How do I translate the ppp command into HPUX-speak?&lt;BR /&gt;&lt;BR /&gt;For example, the standard HPUX pppd doesn't have options for 'notty'. To deal with 'noauth', I guess I just omit it...&lt;BR /&gt;&lt;BR /&gt;The script extract I am trying to get running, looks like:&lt;BR /&gt;&lt;BR /&gt;--- Begin Script Extract ---&lt;BR /&gt;SERVER_HOSTNAME=target&lt;BR /&gt;SERVER_USERNAME=root&lt;BR /&gt;SERVER_IFIPADDR=192.168.3.2&lt;BR /&gt;CLIENT_IFIPADDR=192.168.3.1&lt;BR /&gt;LOCAL_SSH_OPTS="-P"&lt;BR /&gt;PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/:&lt;BR /&gt;PPPD=/usr/sbin/pppd&lt;BR /&gt;PPPD_HPUX=/usr/bin/pppd&lt;BR /&gt;SSH=/usr/bin/ssh&lt;BR /&gt;case "$1" in&lt;BR /&gt;  start)&lt;BR /&gt;    # echo -n "Starting vpn to $SERVER_HOSTNAME: "&lt;BR /&gt;  # Altered command to run as root (naughty, I know)...&lt;BR /&gt;    ${PPPD} updetach noauth passive pty "${SSH} ${LOCAL_SSH_OPTS} ${SERVER_HOSTNAME} -o Batchmode=yes ${PPPD_HPUX} nodetach debug 8 log -" ipparam vpn ${CLIENT_IFIPADDR}:${SERVER_IFIPADDR}&lt;BR /&gt;    # echo "connected."&lt;BR /&gt;    ;;&lt;BR /&gt;--- End Script Extract ---&lt;BR /&gt;&lt;BR /&gt;You'll notice that I've got the HPUX pppd setup to output some debug. When I run the script, I get:&lt;BR /&gt;--- Begin Debug Output ---&lt;BR /&gt;Using interface ppp0&lt;BR /&gt;Connect: ppp0 &amp;lt;--&amp;gt; /dev/pts/5&lt;BR /&gt;9/8-12:11:12-22546 Hewlett-Packard PPP&lt;BR /&gt;9/8-12:11:12-22546 Version 2.0 Beta [26-Oct-2000 23:20:12 hpux-streams-hppa-export]&lt;BR /&gt;9/8-12:11:12-22546 Lock file /usr/spool/locks/LCK..tty created&lt;BR /&gt;9/8-12:11:12-22546 /usr/bin/pppd: Fatal error: Can't open '/dev/tty': No such device or address&lt;BR /&gt;Modem hangup&lt;BR /&gt;Connection terminated.&lt;BR /&gt;--- End Debug Output ---&lt;BR /&gt;&lt;BR /&gt;Obviously, I haven't got the HPUX pppd setup correct. Looking at the man pages doesn't seem to help too much as they are focused on dial-up configs (which involve serial devices). As I'm doing this over IP, how do I do the linux equivalent of 'notty'?&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated (with points!)&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Andy Bruce</description>
      <pubDate>Fri, 08 Sep 2006 06:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859273#M545832</guid>
      <dc:creator>Andrew Bruce</dc:creator>
      <dc:date>2006-09-08T06:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: PPP over SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859274#M545833</link>
      <description>I don't understand why you would want to run IP/PPP over ssh over IP?&lt;BR /&gt;Ssh gives you an encrypted tunnel facility over your existing base IP link, using port forwarding (see -L and -R parameters in man ssh).&lt;BR /&gt;You can add IP addresses to existing interfaces with something like ifconfig lan1:1 &lt;BR /&gt;&lt;BR /&gt;Please explain what the shortfall is that causes you to need ppp and I might also learn something that could be useful.</description>
      <pubDate>Fri, 08 Sep 2006 09:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859274#M545833</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-09-08T09:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: PPP over SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859275#M545834</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;The original reason was that I have an app that is a pain in the backside to configure for tunneling through SSH.&lt;BR /&gt;&lt;BR /&gt;It struck me that creating a basic VPN would save this hassle, and PPP over SSH should be easy to set up (I am aware of the risk of running essentially TCP over TCP)&lt;BR /&gt;&lt;BR /&gt;The client (on linux) establishes comms on one port, then the server and client both set up comm ports to each other based on a list of port ranges, and on the host names provided over the initial connection.&lt;BR /&gt;&lt;BR /&gt;This requires a mixture of remote and local port forwarding, and hostname aliases to localhost, etc.&lt;BR /&gt;&lt;BR /&gt;Overall, a pain.&lt;BR /&gt;&lt;BR /&gt;I've since found a workaround, and so my reason for doing this now is curiosity!&lt;BR /&gt;&lt;BR /&gt;It *can* be done, so I *should* be able to do it.&lt;BR /&gt;&lt;BR /&gt;Obviously, setting this up in a pure Linux environment is straight forward, but under HPUX...&lt;BR /&gt;&lt;BR /&gt;I guess I don't like quitting on a challenge!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Andy Bruce</description>
      <pubDate>Fri, 08 Sep 2006 10:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ppp-over-ssh/m-p/3859275#M545834</guid>
      <dc:creator>Andrew Bruce</dc:creator>
      <dc:date>2006-09-08T10:06:42Z</dc:date>
    </item>
  </channel>
</rss>

