can ping printer but can't ping computer

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

can ping printer but can't ping computer

Post by herbary » Thu May 12, 2011 4:16 pm

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

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: can ping printer but can't ping computer

Post by maikcat » Fri May 13, 2011 10:27 am

hi there,

please post server/client configs first.

>192.168.0.102 (xp)
> 192.168.0.102 (printer)

both devices has SAME ip?!?!?!


Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: can ping printer but can't ping computer

Post by herbary » Mon May 16, 2011 5:00 pm

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!!!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: can ping printer but can't ping computer

Post by maikcat » Tue May 17, 2011 10:22 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: can ping printer but can't ping computer

Post by herbary » Tue May 17, 2011 10:44 am

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?

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: can ping printer but can't ping computer

Post by herbary » Tue May 17, 2011 10:49 am

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

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: can ping printer but can't ping computer

Post by herbary » Tue May 17, 2011 10:59 am

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)

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: can ping printer but can't ping computer

Post by herbary » Wed May 18, 2011 4:52 am

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:

Post Reply