Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
02-28-2009, 04:18 PM
#31
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
Try this too;
Code:
Apt-get install openvpn liblzo
as root.
Last edited by alan_ri; 02-28-2009 at 04:24 PM .
02-28-2009, 04:34 PM
#32
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
same problem again!! i'm root
02-28-2009, 04:38 PM
#33
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
You did notice that is liblzo now and not liblzol ?
02-28-2009, 04:40 PM
#34
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
it's result:
# apt-get install openvpn liblzo
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package liblzo
02-28-2009, 04:45 PM
#35
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
Did you replaced
eth0 with
venet0 in
Code:
ifconfig eth0 | grep inet | \
sed -e 's/.*:\([0-9\.]*\)[0-9]\{1,3\} .*:\([0-9\.]*\) .*:\([0-9\.]*\).*/push "route \10 \3"/g' \
Last edited by alan_ri; 02-28-2009 at 04:46 PM .
02-28-2009, 04:48 PM
#36
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
Yes! but i need tun0 beacuse i can't work with VPN Server!
02-28-2009, 04:54 PM
#37
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
Try
Code:
/etc/init.d/openvpn restart
and post the output of
ifconfig -a and
iwconfig after that.
Also run
Code:
chmod go+rx /etc/openvpn/keys
and
Code:
sed -i \
-e 's/^;\(user[ \t]*.*\)/\1/' \
-e 's/^;\(group[ \t]*.*\)/\1/' \
/etc/openvpn/server.conf
Check if you have
/etc/openvpn/scripts/ directory and
add-client.sh script in it,if so run;
Code:
/etc/openvpn/scripts/add-client.sh client_name
where you need to replace client_name with the name of the client.
Last edited by alan_ri; 02-28-2009 at 05:15 PM .
02-28-2009, 05:12 PM
#38
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
thank you thank you... i replace eth0 with venet0 in
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.23.213.1 P-t-P:10.23.213.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP 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:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
02-28-2009, 05:14 PM
#39
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
So.. i have a problem:
iptables -t nat -A POSTROUTING -s $OPENVPN_IPRANGE.0/24 -o eth1 -j MASQUERADE
iptables: No chain/target/match by that name
How enable iptables?
whereis iptables
iptables: /sbin/iptables /lib/iptables /usr/share/man/man8/iptables.8.gz
replace venet0 with eth1 ??
Last edited by sungirl; 02-28-2009 at 05:16 PM .
02-28-2009, 05:17 PM
#40
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
Yes,replace with
venet0 .But first allow NAT rules to work on the system:
Code:
sed -i -e 's/[# ]*\(net\.ipv4\.conf\.default\.forwarding=\).*/\11/g' /etc/sysctl.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
and then
Code:
iptables -t nat -A POSTROUTING -s $OPENVPN_IPRANGE.0/24 -o venet0 -j MASQUERADE
Last edited by alan_ri; 02-28-2009 at 05:23 PM .
02-28-2009, 05:20 PM
#41
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
i get same problem:
# iptables -t nat -A POSTROUTING -s $OPENVPN_IPRANGE.0/24 -o venet0 -j MASQUERADE
iptables: No chain/target/match by that name
Last edited by sungirl; 02-28-2009 at 05:31 PM .
02-28-2009, 05:33 PM
#42
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
What's the output of
Code:
iptables -t filter -L
02-28-2009, 05:35 PM
#43
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
~# iptables -t filter -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
02-28-2009, 05:43 PM
#44
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
Try
and then
Code:
iptables -t nat -A POSTROUTING -s $OPENVPN_IPRANGE.0/24 -o venet0 -j MASQUERADE
02-28-2009, 05:48 PM
#45
Member
Registered: Feb 2009
Posts: 39
Original Poster
Rep:
i try for depmod -a
~# depmod -a
depmod: QM_MODULES: Function not implemented
All times are GMT -5. The time now is 10:32 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News