Yaoning Tao
2005-08-08 14:14:31 UTC
First, I need thanks Charles Duffy. He explains so much to me!
Now, I make the learn-address options work, but it's out of control :<<
I use Fedora Core3 as OpenVPN servers. I just connect with a test client
running Linux enterprise.
For protect the connection, I use SSL and username/password authentication
There is the structure of my folder and permission
\ root
|--\ openvpn 755
|--server.conf 644
|--\ jail 755
|--\ ccd 711
| |-Client 622 (use to fix the Client IP 10.10.10.113)
|--\ firewall
|-- ipadd 755(/sbin/iptables -A INPUT -j ACCEPT -i tun0 -s
10.10.10.13)
|-- ipremove 755(/sbin/iptables -D INPUT -j ACCEPT -i tun0 -s
10.10.10.13)
The problems are:
1. When I use learn-address option (learn-address
'/openvpn/jail/firewall/ipadd add 10.10.10.113") to create a dynamic ip rule
for remote client when the connection is established. It works fine.
But when I configure learn-address opton like that
learn-address "/openvpn/jail/firewall/ipadd add 10.10.10.113" (add ip
rule when connection establish)
learn-address "/openvpn/jail/firewall/ipremove delete 10.10.10.113"
( remove ip rule when disconnect the VPN)
both the learn-address are run, and I don't get anything. As I think, it
should only run ipadd when client connect the VPN server and register the IP
10.10.10.113 and only run ipremove when client disconnect the VPN server and
release the IP 10.10.10.113. What's run with my configuration?
2. When I use chroot option (chroot /openvpn/jail). I always get error
message "learn-address command failed: could not execute shell command".
Inspite of my configuration is like
learn-address "/openvpn/jail/firewall/ipadd add 10.10.10.113" or
learn-address "/firewall/ipadd add 10.10.10.113"
I even create a subfolder named sbin under jail and copy the
executable file iptables into that folder
3. When I use the (user nobody) and (group nobody) options, I got the error
messages like "can't initialize iptables table `filter': Permission denied
(you must be root)" and "WARNING: learn-address command failed: shell
command exited with error status: 3"
I don't know what happens. I think according the learn-address options, only
the server runs the scprits and don't care the configuration for client
site. Anybody can give me little suggestions?
Thanks
Now, I make the learn-address options work, but it's out of control :<<
I use Fedora Core3 as OpenVPN servers. I just connect with a test client
running Linux enterprise.
For protect the connection, I use SSL and username/password authentication
There is the structure of my folder and permission
\ root
|--\ openvpn 755
|--server.conf 644
|--\ jail 755
|--\ ccd 711
| |-Client 622 (use to fix the Client IP 10.10.10.113)
|--\ firewall
|-- ipadd 755(/sbin/iptables -A INPUT -j ACCEPT -i tun0 -s
10.10.10.13)
|-- ipremove 755(/sbin/iptables -D INPUT -j ACCEPT -i tun0 -s
10.10.10.13)
The problems are:
1. When I use learn-address option (learn-address
'/openvpn/jail/firewall/ipadd add 10.10.10.113") to create a dynamic ip rule
for remote client when the connection is established. It works fine.
But when I configure learn-address opton like that
learn-address "/openvpn/jail/firewall/ipadd add 10.10.10.113" (add ip
rule when connection establish)
learn-address "/openvpn/jail/firewall/ipremove delete 10.10.10.113"
( remove ip rule when disconnect the VPN)
both the learn-address are run, and I don't get anything. As I think, it
should only run ipadd when client connect the VPN server and register the IP
10.10.10.113 and only run ipremove when client disconnect the VPN server and
release the IP 10.10.10.113. What's run with my configuration?
2. When I use chroot option (chroot /openvpn/jail). I always get error
message "learn-address command failed: could not execute shell command".
Inspite of my configuration is like
learn-address "/openvpn/jail/firewall/ipadd add 10.10.10.113" or
learn-address "/firewall/ipadd add 10.10.10.113"
I even create a subfolder named sbin under jail and copy the
executable file iptables into that folder
3. When I use the (user nobody) and (group nobody) options, I got the error
messages like "can't initialize iptables table `filter': Permission denied
(you must be root)" and "WARNING: learn-address command failed: shell
command exited with error status: 3"
I don't know what happens. I think according the learn-address options, only
the server runs the scprits and don't care the configuration for client
site. Anybody can give me little suggestions?
Thanks