PPP & SSH & VPN

PPP & SSH & VPN

Post by David Masso » Wed, 15 Nov 2000 04:00:00



Help!!!

I am setting up PPP to run through SSH.  The config I have uses 3 machines
linked in a chains as follows :-

                  Master <----------------------> Internet
<---------------------> Slave
         eth0                 eth1                       eth1
eth0                      eth1              eth0
192.168.3.1/24     1.0.0.1/8          1.0.0.254/8     2.0.0.254/8
2.0.0.1/8     192.168.4.1/24

Each machine has 2 Ethernet cards eth0 and eth1.  All machines have IP
forwarding enabled and I can successfully telnet from 1.0.0.1 to 2.0.0.1.
The middle machine is acting as the internet i.e.. routing everything
between its interfaces.

I have set-up SSH to enable successful logins to a "vpn" on to the Slave
machine from the Master.

I have then set-up a PPP link that negotiates and appears to set-up OK
between both Master and Slave over the SSH link.

The PPP IP addresses that I wish to use are 192.168.1.1 on Master and
192.168.1.2 on Slave.  These appear to get configured on both Master and
Slave as ppp0 but with a subnet mask of 255.255.255.255.

I am unable to ping either address on each ppp0 interface?  I have tried
configuring the netmask manually to 255.255.255.0 using ifconfig and add
routes to route between the 192.168.3.0 and 192.168.4.0 networks but am
still unable to ping or telnet between the two?

I have followed all The Linux VPN/SSH HOWTO's etc. but still no luck.

I am running on RedHat 6.2 using SSH1 (latest release) and PPP 2.3.11.

Any help is much appreciated.

Thanks in advance

David.

 
 
 

PPP & SSH & VPN

Post by Bill Unr » Wed, 15 Nov 2000 04:00:00



]Help!!!

]I am setting up PPP to run through SSH.  The config I have uses 3 machines
]linked in a chains as follows :-

Why? You already have ethernet, why would you now want to place ppp on
top of that?

]                  Master <----------------------> Internet
]<---------------------> Slave
]         eth0                 eth1                       eth1
]eth0                      eth1              eth0
]192.168.3.1/24     1.0.0.1/8          1.0.0.254/8     2.0.0.254/8
]2.0.0.1/8     192.168.4.1/24

I do hope that there are not your real numbers. 1.0.x.x and 2.0.x.x are
not yours to use. Why are you using those numbers?

]Each machine has 2 Ethernet cards eth0 and eth1.  All machines have IP
]forwarding enabled and I can successfully telnet from 1.0.0.1 to 2.0.0.1.
]The middle machine is acting as the internet i.e.. routing everything
]between its interfaces.

]I have set-up SSH to enable successful logins to a "vpn" on to the Slave
]machine from the Master.

]I have then set-up a PPP link that negotiates and appears to set-up OK
]between both Master and Slave over the SSH link.

]The PPP IP addresses that I wish to use are 192.168.1.1 on Master and
]192.168.1.2 on Slave.  These appear to get configured on both Master and
]Slave as ppp0 but with a subnet mask of 255.255.255.255.

That is as it should be. Ppp is Point to Point. Ie ppp connects machine
A with its specific IP address to machine B with its specific IP
address. It is a host to host, not a host to net protocol. You need to
set up routing if you want to have things routed over that network to
other addresses.
Remember that 192.168 are unroutable on the net, but are fine for your
private net.

]I am unable to ping either address on each ppp0 interface?  I have tried
]configuring the netmask manually to 255.255.255.0 using ifconfig and add
]routes to route between the 192.168.3.0 and 192.168.4.0 networks but am
]still unable to ping or telnet between the two?

This will not help. Set up a specific route throught he relevant
machines to get to other machines.

 
 
 

1. ppp && PPPoE && ADSL && net && buffer(s)

Hello!
i have a freebsd box (4.8-RELEASE) and a italian ADSL (256/128 if i remember good) line.
sometimes my freebsd box (that i use as firewall in my little lan) became stalled.
no data arrive and with ping IP i get error about some buffers full.
in ppp.log i see a lot of:
Jun 24 22:45:39 firewall ppp[66]: tun0: Phase: Clearing choked output queue

i search with google on newsgroups but i don't find nothing that work :)

i put some info on the configuration, because i read a lot of question about this parameters :)

kernel config:
maxusers        64
options         NMBCLUSTERS=32768       #expand nic buffer

in ppp.conf:
add default HISADDR

netstat -m:
1/400/131072 mbufs in use (current/peak/max):
        1 mbufs allocated to data
0/182/32768 mbuf clusters in use (current/peak/max)
464 Kbytes allocated to network (0% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

netstat -t:
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.100.1      UGSc       15  8181837   tun0
localhost          localhost          UH         11   116358    lo0
192.168.0          link#1             UC          3        0    rl0
firewall           00:10:a7:06:7b:50  UHLW        3    31603    lo0
stefano            00:06:4f:01:08:86  UHLW       12 15328918    rl0    900
192.168.0.255      ff:ff:ff:ff:ff:ff  UHLWb       0     2635    rl0
192.168.100.1      hostXXX-172.pool62 UH         19        0   tun0

i hope that someone can help me :)

Regards,
        Stefano

--
Stefano Balocco
RIPE handle:    6BONE-SB27
Keyserver:      http://keyserver.linux.it ID:     8EF05AB2
Fingerprint:    DF65 A9E5 E307 D647 9E41 1CD1 9265 BF7D 8EF0 5AB2

2. September 4, 2002

3. &&&&----Looking for a unix shell------&&&&&

4. Problem with a spea mirage card

5. &#27809;&#26377;&#20154;&#29992;&#20013;&#25991;&#21527;&#65311;

6. Triton II timing problems under Linux?

7. &&&&&& SUGGESTION ??? &&&&&&&&

8. smbmount please

9. ADSL, ssh & X (Was: ssh & X)

10. Hercules &&&&&& SVGA ?

11. PERL && mod_perl && FreeBSD && Apache

12. &&&&&& NEEED HELP COMPAQ AND XXXXXXXXXXX

13. &#1056;&#1091;&#1089;&#1080;&#1092;&#1080;&#1082;&#1072;&#1094;&#1080;&#1103; NetBSD (1.5.1) Locale koi8-r