How to block my ip address?

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to block my ip address?

Postby victornova » Thu Jan 05, 2017 5:06 pm

How to block my ip address so nobody has access to my dialer from another ip other than mine.?
victornova
 
Posts: 19
Joined: Wed Oct 05, 2016 11:23 am

Re: How to block my ip address?

Postby iboam » Fri Jan 06, 2017 12:17 am

A friend of mine give me a solution, it's working with me so im sharing with the world.

This script will open all ports to "TRUSTED SOURCES" and will block all ports to "UNTRUSTED SOURCES"

vim firewall.sh

i

#!/bin/bash
/sbin/SuSEfirewall2 off

#CLEAR ALL IPTABLE RULES
iptables -F
iptables -X

# DROP ALL INBOUND TRAFFIC
iptables -P INPUT DROP

# DROP ALL FORWARDING TRAFFIC
iptables -P FORWARD DROP

# ALLOW OUTBOUND TRAFFIC
iptables -P OUTPUT ACCEPT

# ALLOW SYSTEM TRAFFIC
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# ALLOW TRAFFIC FROM TRUSTED SOURCES
# HOME
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT


# TRUNKS
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT #TRUNK NAME

# DROP ALL INBOUND TRAFFIC
iptables -A INPUT -p all -j DROP

:wq


***************************************************

vim /etc/rc.d/boot.local
i
/root/firewall.sh
:wq


chmod 777 firewall.sh
chmod +x firewall.sh
./firewall.sh


iptables -vnL
ViciBox: 11 | VERSION: 2.14-897a BUILD: 230927-0857 | Clusters: 1 DB-WEB-ASTX | SSL | WebRTC | Wallboard | DNC Nightly Scrubber
iboam
 
Posts: 257
Joined: Mon Feb 08, 2016 2:35 pm

Re: How to block my ip address?

Postby victornova » Fri Jan 13, 2017 12:00 pm

iboam wrote:A friend of mine give me a solution, it's working with me so im sharing with the world.

This script will open all ports to "TRUSTED SOURCES" and will block all ports to "UNTRUSTED SOURCES"

vim firewall.sh

i

#!/bin/bash
/sbin/SuSEfirewall2 off

#CLEAR ALL IPTABLE RULES
iptables -F
iptables -X

# DROP ALL INBOUND TRAFFIC
iptables -P INPUT DROP

# DROP ALL FORWARDING TRAFFIC
iptables -P FORWARD DROP

# ALLOW OUTBOUND TRAFFIC
iptables -P OUTPUT ACCEPT

# ALLOW SYSTEM TRAFFIC
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# ALLOW TRAFFIC FROM TRUSTED SOURCES
# HOME
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT


# TRUNKS
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT #TRUNK NAME

# DROP ALL INBOUND TRAFFIC
iptables -A INPUT -p all -j DROP

:wq


***************************************************

vim /etc/rc.d/boot.local
i
/root/firewall.sh
:wq


chmod 777 firewall.sh
chmod +x firewall.sh
./firewall.sh


iptables -vnL

Thank you very much brother, you helped me a lot
victornova
 
Posts: 19
Joined: Wed Oct 05, 2016 11:23 am

Re: How to block my ip address?

Postby williamconley » Sat Jan 14, 2017 9:33 pm

http://viciwiki.com/index.php/DGG

Dynamic Good Guys Whitelist Firewall for Vicidial

It is not actually necessary to *install* DGG, as the instructions show first how to whitelist lockdown your system. Then installing DGG is merely to allow an easy web page to add/remove authorized (whitelist) IPs plus an additional page to allow a login from a special link (so you can check the real time screen from Starbucks easily, for instance).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to block my ip address?

Postby forwardsource » Sun Aug 20, 2017 12:59 pm

http://viciwiki.com/index.php/DGG

Above mentioned site link is not working. Please advise us the script.
forwardsource
 
Posts: 2
Joined: Sun Aug 20, 2017 6:04 am

Re: How to block my ip address?

Postby williamconley » Mon Sep 04, 2017 10:11 pm

forwardsource wrote:http://viciwiki.com/index.php/DGG

Above mentioned site link is not working. Please advise us the script.

Um ... we were moving it (and a bunch of other webs) to a new server and somewhere in the new process it got left behind.

Back online. ;)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 38 guests