Page 1 of 1

can ping printer but can't ping computer

Posted: Thu May 12, 2011 4:16 pm
by herbary
I have lan:

wan - (ip:xxx.xxx.xxx.xxx)gateway(192.168.0.1) - lan
- 192.168.0.101 (xp/vpn server)
- 192.168.0.102 (xp)
- 192.168.0.102 (printer)

in route tab of 192.168.0.101 (xp/vpn server) added:
192.168.0.0 255.255.255.0 192.168.0.101

from remote vpn-client
1. i can ping vpn-interface and lan-interface of xp/vpn server,
2. i can ping lan-interface of printer,

but can't ping:
1. lan gateway 192.168.0.1
2. 192.168.0.102 (xp)
:cry:

why xp/vpn server can route to printer and can't to 192.168.0.102 (xp)?
xp/vpn server - xp home edition

Re: can ping printer but can't ping computer

Posted: Fri May 13, 2011 10:27 am
by maikcat
hi there,

please post server/client configs first.

>192.168.0.102 (xp)
> 192.168.0.102 (printer)

both devices has SAME ip?!?!?!


Michael.

Re: can ping printer but can't ping computer

Posted: Mon May 16, 2011 5:00 pm
by herbary
of course > 192.168.0.250 (printer)

client:
remote 93.100.93.153
dev tun
ifconfig 192.168.1.2 192.168.1.1
route 192.168.0.0 255.255.255.0 192.168.1.1
secret static.key

server:
dev tun
ifconfig 192.168.1.1 192.168.1.2
push "route 192.168.0.0 255.255.255.0"
route 192.168.0.0 255.255.255.0 192.168.0.101
secret static.key
verb 6


on vpn-server registry key enablerouting is 1
ras-service is running

Cant get in mind why server cant route to any computers but can to printer - mustery. :cry:

and may be it impotant - client remote pc with 3G-modem.
realy need help!!!

Re: can ping printer but can't ping computer

Posted: Tue May 17, 2011 10:22 am
by maikcat
hi there,

check with these configs

server:

dev tun
ifconfig 192.168.1.1 192.168.1.2
push "route 192.168.0.0 255.255.255.0"
secret static.key
verb 6

client

remote 93.100.93.153
dev tun
ifconfig 192.168.1.2 192.168.1.1
secret static.key

ps:why ras is running?

Michael.

Re: can ping printer but can't ping computer

Posted: Tue May 17, 2011 10:44 am
by herbary
if I stop ras no routing at all

>pathping 192.168.0.101 (server side lan interface)
192.168.1.2
192.168.1.1
***

unable ping lan interface of vpnserver.
I stop ras and what to do now?

Re: can ping printer but can't ping computer

Posted: Tue May 17, 2011 10:49 am
by herbary
if ras is running

>pathping 192.168.0.101 (lan interface of vpn server)
192.168.1.2
192.168.1.1
192.168.1.101

>pathping 192.168.0.250 (lan printer)
192.168.1.2
192.168.1.1
192.168.1.250

>pathping 192.168.0.103 (xp lan mashine)
192.168.1.2
192.168.1.1
***

server config:
dev tun
ifconfig 192.168.1.1 192.168.1.2
push "route 192.168.0.0 255.255.255.0"
secret static.key

Re: can ping printer but can't ping computer

Posted: Tue May 17, 2011 10:59 am
by herbary
if i use on server this config (ras running):

dev tun
ifconfig 192.168.1.1 192.168.1.2
push "route 192.168.0.0 255.255.255.0"
secret static.key
verb 6
(delete route line)

>pathping 192.168.0.xxx
192.168.1.2
192.168.1.1
***
:shock:

it seems i walking around same
(main gateway of server side lan is 192.168.0.1)

Re: can ping printer but can't ping computer

Posted: Wed May 18, 2011 4:52 am
by herbary
Ok - solved!

just added route 192.168.1.0 255.255.255.0 192.168.1.101 (lan server side interface) on lan computers - that is all!
:lol: