LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2009, 04:18 PM   #31
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127

Try this too;
Code:
Apt-get install openvpn liblzo
as root.

Last edited by alan_ri; 02-28-2009 at 04:24 PM.
 
Old 02-28-2009, 04:34 PM   #32
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
same problem again!! i'm root
 
Old 02-28-2009, 04:38 PM   #33
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You did notice that is liblzo now and not liblzol?
 
Old 02-28-2009, 04:40 PM   #34
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
it's result:

# apt-get install openvpn liblzo
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package liblzo
 
Old 02-28-2009, 04:45 PM   #35
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 02-28-2009, 04:48 PM   #36
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Yes! but i need tun0 beacuse i can't work with VPN Server!
 
Old 02-28-2009, 04:54 PM   #37
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 02-28-2009, 05:12 PM   #38
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
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)
 
Old 02-28-2009, 05:14 PM   #39
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
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.
 
Old 02-28-2009, 05:17 PM   #40
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 02-28-2009, 05:20 PM   #41
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
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.
 
Old 02-28-2009, 05:33 PM   #42
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
What's the output of
Code:
iptables -t filter -L
 
Old 02-28-2009, 05:35 PM   #43
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
~# 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
 
Old 02-28-2009, 05:43 PM   #44
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Try
Code:
depmod -a
and then
Code:
iptables -t nat -A POSTROUTING -s $OPENVPN_IPRANGE.0/24 -o venet0 -j MASQUERADE
 
Old 02-28-2009, 05:48 PM   #45
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
i try for depmod -a

~# depmod -a
depmod: QM_MODULES: Function not implemented
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error fetching interface information: device not found jhelzunn Linux - Networking 9 08-09-2017 04:24 PM
eth0 :error fetching interface information sai_tejas Linux - Networking 2 06-05-2008 01:52 AM
eth0: ERROR while getting interface flags: No such device ncsuapex Linux - Networking 19 03-17-2008 11:47 AM
: error fetching interface information: Device not found Beauford-2 Slackware 5 02-13-2008 09:28 AM
error fetching interface information jw.pi Linux - Networking 2 06-22-2001 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration