I Have 2 PC, with 2 modem. I must to connect the pc using modem. (LINUX DEBIAN)!

I have installed a server PPP dial-in (GPRS modem). This is the configuration files:

SERVER:

echo 1 > /proc/sys/net/ipv4/ip_forward


in /etc/mgetty/login.config

/AutoPPP/ - a_ppp /usr/sbin/pppd noauth -chap -pap debug


in /etc/ppp/options:

-detach
asyncmap 0
debug
idle 300
lock
noauth
modem
crtscts
defaultroute
netmask 255.255.255.0

in /etc/ppp/options:

10.0.0.10:10.0.0.11



CLIENT (analog modem):

/etc/ppp/options

lock
debug
defaultroute
noipdefault
modem
/dev/ttyS0
38400
crtscts
passive
asyncmap 0
user "mino"


/etc/ppp/pppscript

TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
"" "ATZ" OK
"atdt0,3498272120"
TIMEOUT 75
CONNECT


/root/connect

date
echo "Script di connessione partito"
/usr/sbin/pppd noauth debug -detach connect "/usr/sbin/chat -v -f /etc/ppp/pppscript"



First i test to connect the client to server with minicom. The connect is ok! I insert user and password and i have a shell.


After


When i start connect script on client i established a connection:

CLIENT LOG:
Connect: ppp0 <--> /dev/ttyS0
Sep 6 14:17:42 muse pppd[2810]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Sep 6 14:17:42 muse pppd[2810]: sent [LCP ConfReq id=0x1 ]
Sep 6 14:17:43 muse pppd[2810]: rcvd [LCP ConfReq id=0x1 ]
Sep 6 14:17:43 muse pppd[2810]: sent [LCP ConfAck id=0x1 ]
Sep 6 14:17:45 muse pppd[2810]: sent [LCP ConfReq id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: rcvd [LCP ConfAck id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: sent [CCP ConfReq id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: sent [IPCP ConfReq id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: rcvd [CCP ConfReq id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: sent [CCP ConfAck id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: rcvd [IPCP ConfReq id=0x1 ]
Sep 6 14:17:46 muse pppd[2810]: sent [IPCP ConfAck id=0x1 ]
Sep 6 14:17:47 muse pppd[2810]: rcvd [CCP ConfAck id=0x1 ]
Sep 6 14:17:47 muse pppd[2810]: Deflate (15) compression enabled
Sep 6 14:17:47 muse pppd[2810]: rcvd [IPCP ConfNak id=0x1 ]
Sep 6 14:17:47 muse pppd[2810]: sent [IPCP ConfReq id=0x2 ]
Sep 6 14:17:49 muse pppd[2810]: rcvd [IPCP ConfAck id=0x2 ]
Sep 6 14:17:49 muse pppd[2810]: local IP address 10.0.0.20
Sep 6 14:17:49 muse pppd[2810]: remote IP address 10.0.0.10
Sep 6 14:17:49 muse pppd[2810]: Script /etc/ppp/ip-up started (pid 2815)





SERVER LOG:
Connect: ppp0 <--> /dev/ttyUSB0
Sep 6 14:17:51 linuxbox2 pppd[1974]: sent [LCP ConfReq id=0x1 ]
Sep 6 14:17:52 linuxbox2 pppd[1974]: rcvd [LCP ConfAck id=0x1 ]
Sep 6 14:17:54 linuxbox2 pppd[1974]: rcvd [LCP ConfReq id=0x1 ]
Sep 6 14:17:54 linuxbox2 pppd[1974]: sent [LCP ConfAck id=0x1 ]
Sep 6 14:17:54 linuxbox2 pppd[1974]: sent [CCP ConfReq id=0x1 ]
Sep 6 14:17:54 linuxbox2 pppd[1974]: sent [IPCP ConfReq id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: rcvd [CCP ConfReq id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: sent [CCP ConfAck id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: rcvd [IPCP ConfReq id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: sent [IPCP ConfNak id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: rcvd [CCP ConfAck id=0x1 ]
Sep 6 14:17:55 linuxbox2 pppd[1974]: Deflate (15) compression enabled
Sep 6 14:17:55 linuxbox2 pppd[1974]: rcvd [IPCP ConfAck id=0x1 ]
Sep 6 14:17:56 linuxbox2 pppd[1974]: rcvd [IPCP ConfReq id=0x2 ]
Sep 6 14:17:56 linuxbox2 pppd[1974]: sent [IPCP ConfAck id=0x2 ]
Sep 6 14:17:56 linuxbox2 pppd[1974]: local IP address 10.0.0.10
Sep 6 14:17:56 linuxbox2 pppd[1974]: remote IP address 10.0.0.20
Sep 6 14:17:56 linuxbox2 pppd[1974]: Script /etc/ppp/ip-up started (pid 1980)



CLIENT:

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.0.11 P-t-P:10.0.0.10 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:1 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:72 (72.0 B) TX bytes:78 (78.0 B)

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.10 * 255.255.255.255 UH 0 0 0 ppp0
default * * U 0 0 0 ppp0


SERVER:

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.0.10 P-t-P:10.0.0.11 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:78 (78.0 B) TX bytes:72 (72.0 B)


Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.11 * 255.255.255.255 UH 0 0 0 ppp0
default * * U 0 0 0 ppp0


The connections don't work. If i ping from server to client or from client to server the connection don't work.

Please help me!

thanks