my default login to my vps does not work for the ovpn fileGawa ka po account sa vps mo..then yun yung gamitin mong user at pass sa ovpn file mo..

my default login to my vps does not work for the ovpn fileGawa ka po account sa vps mo..then yun yung gamitin mong user at pass sa ovpn file mo..

type menu or accounts to create one for ovpnmy root login works for the webmin thank you
but my root login does not work for the client.ovpn file
what is the login for the file?
galing mag english hahahatype menu or accounts to create one for ovpn
thanks for that i created a user and its still not working.type menu or accounts to create one for ovpn
Give me a screenshot.. YgpmIts very strange if im on my home wifi i can connect to the ovpn
when i try to connect from my 4g it says connection error
Sure poSir, pwede mag-suggest regarding sa script?
Is it a Legit wifi connection ?Its very strange if im on my home wifi i can connect to the ovpn
when i try to connect from my 4g it says connection error
function installQuestions () {
# Detect public IPv4 address and pre-fill for the user
IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
# If $IP is a private IP address, the server must be behind NAT
if echo "$IP" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then
echo ""
...
EXT_INT=$(cut -d' ' -f5 <(ip -4 route ls default))
IPADDR=$(ip -4 addr ls $EXT_INT | head -2 | tail -1 | cut -d' ' -f6 | cut -d'/' -f1)
echo 'user-manual /usr/share/doc/privoxy/user-manual' > /etc/privoxy/config
echo 'confdir /etc/privoxy' >> /etc/privoxy/config
echo 'logdir /var/log/privoxy' >> /etc/privoxy/config
echo 'filterfile default.filter' >> /etc/privoxy/config
echo 'logfile logfile' >> /etc/privoxy/config
echo 'listen-address 0.0.0.0:'"$PORTS" >> /etc/privoxy/config
echo 'toggle 1' >> /etc/privoxy/config
...
cat>>/etc/privoxy/config<<EOF
user-manual /usr/share/doc/privoxy/user-manual
confdir /etc/privoxy
logdir /var/log/privoxy
...
EOF
may ayus nga to boss shadow046In regards sa function block na:
Code:function installQuestions () { # Detect public IPv4 address and pre-fill for the user IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1) # If $IP is a private IP address, the server must be behind NAT if echo "$IP" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then echo "" ...
Sa tingin ko para ma-derive yung proper external interface, dapat i-consider yung default route, especially true sa multi-NICs setup.
Proposed improvement:
Code:EXT_INT=$(cut -d' ' -f5 <(ip -4 route ls default)) IPADDR=$(ip -4 addr ls $EXT_INT | head -2 | tail -1 | cut -d' ' -f6 | cut -d'/' -f1)
Ang advantages ng proposed code: a) it no longer matters kung naka private IP (behind NAT) o hindi yung server, the code will still spit the correct external interface/address; b) hindi na kailangan tanungin yung user kung ano external IP. Isa pa, pwedeng magkamali ang user dun. So iwas user-error. Let the script handle it.
Saka yung pag-create ng config file:
Code:echo 'user-manual /usr/share/doc/privoxy/user-manual' > /etc/privoxy/config echo 'confdir /etc/privoxy' >> /etc/privoxy/config echo 'logdir /var/log/privoxy' >> /etc/privoxy/config echo 'filterfile default.filter' >> /etc/privoxy/config echo 'logfile logfile' >> /etc/privoxy/config echo 'listen-address 0.0.0.0:'"$PORTS" >> /etc/privoxy/config echo 'toggle 1' >> /etc/privoxy/config ...
Mas mainam siguro kung yung ganito:
Code:cat>>/etc/privoxy/config<<EOF user-manual /usr/share/doc/privoxy/user-manual confdir /etc/privoxy logdir /var/log/privoxy ... EOF
user@debian10:~/openvpndeb-master$ grep -nC2 AUTO_INSTALL openvpn.sh
142-function installOpenVPN () {
143-
144: if [[ $AUTO_INSTALL == "y" ]]; then
145- # Set default choices so that no questions will be asked.
146- APPROVE_INSTALL=${APPROVE_INSTALL:-y}
Boss na revised ko na yata yan nung nakaraan paIsa pang observation bossing. Yung autoinstall ng OpenVPN, hindi yata natr-trigger. As a result, it does not get installed.
Walang other mention ng AUTO_INSTALL maliban sa line 144 as per below:
Code:user@debian10:~/openvpndeb-master$ grep -nC2 AUTO_INSTALL openvpn.sh 142-function installOpenVPN () { 143- 144: if [[ $AUTO_INSTALL == "y" ]]; then 145- # Set default choices so that no questions will be asked. 146- APPROVE_INSTALL=${APPROVE_INSTALL:-y}
Salamat boss.. Sabi ko naman sa inyo bago lang ako sa ganitoIn regards sa function block na:
Code:function installQuestions () { # Detect public IPv4 address and pre-fill for the user IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1) # If $IP is a private IP address, the server must be behind NAT if echo "$IP" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then echo "" ...
Sa tingin ko para ma-derive yung proper external interface, dapat i-consider yung default route, especially true sa multi-NICs setup.
Proposed improvement:
Code:EXT_INT=$(cut -d' ' -f5 <(ip -4 route ls default)) IPADDR=$(ip -4 addr ls $EXT_INT | head -2 | tail -1 | cut -d' ' -f6 | cut -d'/' -f1)
Ang advantages ng proposed code: a) it no longer matters kung naka private IP (behind NAT) o hindi yung server, the code will still spit the correct external interface/address; b) hindi na kailangan tanungin yung user kung ano external IP. Isa pa, pwedeng magkamali ang user dun. So iwas user-error. Let the script handle it.
Saka yung pag-create ng config file:
Code:echo 'user-manual /usr/share/doc/privoxy/user-manual' > /etc/privoxy/config echo 'confdir /etc/privoxy' >> /etc/privoxy/config echo 'logdir /var/log/privoxy' >> /etc/privoxy/config echo 'filterfile default.filter' >> /etc/privoxy/config echo 'logfile logfile' >> /etc/privoxy/config echo 'listen-address 0.0.0.0:'"$PORTS" >> /etc/privoxy/config echo 'toggle 1' >> /etc/privoxy/config ...
Mas mainam siguro kung yung ganito:
Code:cat>>/etc/privoxy/config<<EOF user-manual /usr/share/doc/privoxy/user-manual confdir /etc/privoxy logdir /var/log/privoxy ... EOF


It's all good, bossing! Pare-pareho tayong natututo dito.Salamat boss.. Sabi ko naman sa inyo bago lang ako sa ganito
Kaya ginawa kong transparent yan.. Para makita ng karamihan at makapagbigay na din kayo ng suggestions kung may mali..
nga pala inuupdate ko unti unti yung script boss.. luma yata yung nakita mo![]()
ahh nasilip ko na yata yanIt's all good, bossing! Pare-pareho tayong natututo dito.
May ginawa akong universal installer (squid+privoxy) sa ibang thread. Wala nga lang OpenVPN. I-update ko one time.


yan ang hinihintay ko bossingIt's all good, bossing! Pare-pareho tayong natututo dito.
May ginawa akong universal installer (squid+privoxy) sa ibang thread. Wala nga lang OpenVPN. I-update ko one time.
