Page 1 of 1
need to use public ip in my local lan
Posted: Sat Apr 16, 2011 1:33 am
by mobeelco
hello
this my server config file
Code: Select all
port 1194
proto udp
dev tap
ca ca.crt
cert ovpnsrv1.crt
key ovpnsrv1.key
dh dh1024.pem
tls-server
server 192.168.10.0 255.255.255.0
comp-lzo
keepalive 10 120
user nobody
group users
persist-key
persist-tun
verb 3
this client config file
Code: Select all
tls-client
dev tap
proto udp
port 1194
remote x.x.x.x
pull
comp-lzo
verb 3
mute 20
ca ca.crt
cert x.crt
key x.key
the client installed on pc with windows xp
this pc have two lan card one for internet dsl
and the other lan card for local lan
in this local lan i need to use public ip on specific pc connected to this lan
the public ip subnet exists in the openvpn server on eth1
and i connect to the openvpn server throgh the ip exist in eth0
what i have to do to use these publie ip in my local lan ?
Re: need to use public ip in my local lan
Posted: Sat Apr 16, 2011 7:07 pm
by mobeelco
Re: need to use public ip in my local lan
Posted: Mon Apr 18, 2011 11:48 am
by janjust
it would help if you draw an ASCII-art diagram (or picture) of your network setup. Sounds like that you want a PC on the client-side LAN of your VPN to connect - via the VPN - to the internet using a public IP which is available on the server-side LAN, right?
Re: need to use public ip in my local lan
Posted: Mon Apr 18, 2011 9:41 pm
by mobeelco
hello junjust
thank you for yor help
i made simple drawing of my topology
pls check
from openvpn client pc
i can ping 192.168.10.1 very good
now i need in each workstation publice ip from subnet in openvpn server eth1
i hope u will help me in that (it's very urgent)
Re: need to use public ip in my local lan
Posted: Tue Apr 19, 2011 5:34 pm
by mobeelco
openvpn server
the kernal ip table
Code: Select all
188.138.x.192 0.0.0.0 255.255.255.192 U 0 0 0 eth1
188.138.x.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 188.138.x.129 0.0.0.0 UG 0 0 0 eth0
ifconfig
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:22:4D:37:ED:49
inet addr:188.138.x.187 Bcast:188.138.x.191 Mask:255.255.255.192
inet6 addr: fe80::222:4dff:fe37:ed49/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1263867 errors:0 dropped:0 overruns:0 frame:0
TX packets:1573854 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:154618459 (147.4 MiB) TX bytes:229560985 (218.9 MiB)
Interrupt:11 Memory:de020000-de040000
eth1 Link encap:Ethernet HWaddr 00:22:4D:37:ED:48
inet addr:188.138.x.218 Bcast:188.138.x.255 Mask:255.255.255.192
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Memory:de120000-de140000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6675 errors:0 dropped:0 overruns:0 frame:0
TX packets:6675 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:950135 (927.8 KiB) TX bytes:950135 (927.8 KiB)
tap0 Link encap:Ethernet HWaddr 9E:71:F5:F3:56:72
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::9c71:f5ff:fef3:5672/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16528 errors:0 dropped:0 overruns:0 frame:0
TX packets:9857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1586889 (1.5 MiB) TX bytes:709474 (692.8 KiB)
Re: need to use public ip in my local lan
Posted: Wed Apr 20, 2011 5:15 pm
by mobeelco
no one can help ???
or it's immposible ??
pls tell me
Re: need to use public ip in my local lan
Posted: Wed Apr 20, 2011 9:02 pm
by mobeelco
????????????????????????/
Re: need to use public ip in my local lan
Posted: Fri Apr 22, 2011 8:26 pm
by mobeelco