🔒 Closed All in One VPS installer for Debian 9

Status
Not open for further replies.
type menu or accounts to create one for ovpn
thanks for that i created a user and its still not working.

here is what i did.

step 1: create digitalocean droplet deb 9.7
step 2. run your script -
apt update && apt-get -y install git && git clone You do not have permission to view the full content of this post. Log in or register now. && cd openvpndeb && chmod +x openvpn.sh && ./openvpn.sh
step 3. added a user via the menu/accounts option
step 4. import the ovpn file and it does not connect or anything, no error just spins and spins
 
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
 
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
Is it a Legit wifi connection ?
if yes , you can really connect to the ovpn.

in your 4G.
Connection error
1. Are you using SUN SIMCARD ?

if NO you can't connect because the ovpn file is set-up for SUN SIMCARD

if YES
2. Do you have LOAD ? ( TU/CTC )
if NO , you need to.

if YES
disconnect and connect.
or Airplane mode for 1min
then connect again.
 
In 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
 
In 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
may ayus nga to boss shadow046
 
Isa 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}
 
Isa 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}
Boss na revised ko na yata yan nung nakaraan pa

Hindi talaga sya na ttrigger kaya inalis ko.. kasi manual pa din naman mas ok kung mag ask ng port at protocol para makapili sila
 
In 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
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 :)
 
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 :)
It'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.
 
It'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.
ahh nasilip ko na yata yan
salamat boss.. pag may napapansin kayong pwedeng idagdag.. suggest nyo lang :)

buti may mga katulad mong hindi madamot sa IDEA ^_^ haha

di tulad ng iba dyan :)

bato bato sa forum.. tamaan wag na mag react ^_^
 
Status
Not open for further replies.

About this Thread

  • 479
    Replies
  • 26K
    Views
  • 79
    Participants
Last reply from:
Unknown user

Online now

Members online
511
Guests online
1,264
Total visitors
1,775

Forum statistics

Threads
2,273,558
Posts
28,950,350
Members
1,235,817
Latest member
dreamnail
Back
Top