A firewall is a program that controls the incoming and outgoing network traffic on a system. Use this tag for all questions related to firewall configuration and operation.

learn more… | top users | synonyms

1
vote
0answers
15 views

Separation between the User machine and Server machine by another linux for monitoring

I am planning to have three virtual machines with virtual box (m1, m2,m3). I already installed on m1 = Windows XP Home Edition, and on m2 = LUbuntu 15. The big picture is this : m1 : a user m2 : ...
0
votes
1answer
17 views

Firewall Rule Testing - telnet failing

I am testing firewall rules but the telnet is failing. The firewallrules have been implemented but the target server is not listening on the servers. How can I enable the target server ports to ...
0
votes
1answer
78 views

iptables - how to drop protocols [closed]

I have the desktop-server Debian Jessie machine running for testing purposes just for 19 hours now. I have already set a few rules as you can see above. But I am not really into networking. So it ...
0
votes
0answers
18 views

iptables: block communication with others in same subnet

I have a couple of devices in my subnet (e.g. 192.168.0.0/24) and would like to make sure that one of these devices (identified by MAC or IP) can only talk via the router (where I'd like to set up ...
1
vote
0answers
41 views

Wireless ssh “issue” (No route to host)

I installed Debian Jessie (gnome) on one of my machines today and it went smoothly except for the wifi. Calling this machine A, I set up an ssh connection with machine B (using an rsa key) and then I ...
1
vote
1answer
44 views

iptables - why do I get “Table does not exist (do you need to insmod?)”

I need to install some iptable ruels to block traffic that originates from a certain country, I found this script example on http://www.cyberciti.biz/faq/block-entier-country-using-iptables/ it works ...
2
votes
1answer
32 views

Iptables rule to drop packets to and from local network

I want to set a virtual machine on laptop, but I don't trust the guest system fully, so I would like to block it's access to local network (to network 192.168.0.1/16 or 10.0.0.1/8 or ... the other one ...
1
vote
2answers
35 views

Using IPTables to Block Ports to Class A Subnets While Allowing Web Ports (80/443)

This is about a cPanel server which, like most servers, is under constant attack from lands afar. Considering that I only host to clients in the US and Canada, there is less of a reason to allow full ...
-1
votes
3answers
30 views

How to stop outbound ftp from being established. centos/ rhel

What is the method to block a machine from establishing connection to an outside ftp server. Both ftp and sftp. inet, iptables, shutdown service?
1
vote
2answers
37 views

Unlocking all ports in a router when using Linux

I heard that Linux's open ports are not very vulnerable, so a normal desktop Linux installation doesn't need a firewall. Still, my router (Dlink) blocks some ports, even in LAN. Would it be a bad ...
1
vote
1answer
20 views

Advanced Policy Firewall: allow_hosts.rules doesn't work

I'm trying to open ports for Nimsoft. In allow_hosts.rules I opened ports for private network: tcp:in:d=48000_48020:s=10.0.0.0/8 tcp:out:d=48000_48020:d=10.0.0.0/8 During starting apf I see that ...
0
votes
0answers
33 views

Linux VM as a firewall

I have 3 vms a->b->c. I want to setup b as a firewall. Traffic is routed from a to c through b and I put a file on c. How do I show that b works as a firewall (first show that you are able to transfer ...
0
votes
3answers
82 views

Port is open but I can't ssh to it

My company PC is behind the firewall, I want to connect to my remote server. The port is open however I can not connect to it, does anyone know the root cause? From my company PC connect to my ...
1
vote
0answers
55 views

Change timeout of an entry of ipset with iptables rule

I'm trying to create a set with ipset and using it in some iptables rules. ipset has timeout option to set a countdown timeout to an entry of a set to automatically remove it after a period of time. ...
0
votes
2answers
267 views

How to let the Firewall of RHEL7 the SNMP connection passing?

How to let the Firewall of RHEL7 the SNMP connection passing? When I did this command on the computer: systemctl stop firewalld All the SNMP packet are passing well. When I restarted firewalld ...
0
votes
2answers
38 views

Working with firewall-protected server through ssh (dynamic IP)

I need to work on a Debian 6 server through SSH. The server is firewall-protected and SSH connections are filtered based on the user IP. Unfortunately I have an ISP provider with dynamic IP - it's ...
0
votes
0answers
24 views

Is there any way to configure fully automated proxyclient for workstations?

My network diagram is similar to above image; pc-router is also acting as firewall & I'm running squid on it. pc-router is running debian Vlan having workstations running fedora, ubuntu and ...
2
votes
1answer
53 views

iptables to block all websites

I have Debian 7, and I want to block all websites in my computer, unless my email, using IPTABLES or others firewall. How can I block all website, include http and https too. How can I do this?
3
votes
1answer
188 views

Which ports should I open for apt-get to work?

I installed Webmin, and then set up the firewall like this: INPUT SSH port ALLOWED Webmin port ALLOWED HTTP port (80) ALLOWED DROP EVERYTHING ELSE FORWARDING no rules OUTPUT no rules If I remove ...
1
vote
2answers
242 views

Error when redirecting ports with iptables: No chain/target/match by that name

I am trying to redirect all incoming TCP connections, originally to port 80, to port 8090, because I am running Confluence in 8090 and I want to avoid it running as root, which is a requirement to ...
0
votes
1answer
46 views

ufw rule deny default outgoing

I want to deny all outgoing traffic by default, except ssh connections. I added this rules: ufw default deny outgoing ufw allow ssh Then I restarted the firewall by: ufw disable ufw enable ...
0
votes
1answer
60 views

Block outgoing connection from running process

I have an java application that I have been developing. I use a external db server that I can't control. I want to simulate connection error to it, but I'm unable to do it. I have tried to use ...
2
votes
1answer
119 views

How to Mark Traffic using IPtables?

I'm trying to mark traffic, How shall I write following code in terms of IPtables? /ip firewall mangle> add chain=prerouting src-address=10.1.1.1/32 action=mark-connection \ ...
1
vote
1answer
104 views

Block outgoing connections to certain IP using PF

Can someone give me a hint on how to setup a basic deny rule whenever any TCP request is sent to a specific IP address? I am using the PF packet filter. Any help?
0
votes
1answer
115 views

How to block telnet using iptables command

I am trying to block telnet on my server but I have failed to do so. I have added following firewall rules in INPUT chain of filter table for the same. INPUT CHAIN(filter table): <some other ...
1
vote
2answers
90 views

iptables configuration - ssh connection only from a remote network

I'm trying to configure Iptables of a server in order to permit SSH incoming connections only from a certain network. by the way this is the rule chain : # Drop anything we aren't explicitly ...
0
votes
0answers
62 views

Why is my laptop being blocked from connecting to a PPTP VPN server?

I have a fairly simple network at home Internet --> Modem --> Linux Router --> Switch --> Laptop The problem: There is a PPTP VPN server at work that I need to connect to from home. I configured my ...
1
vote
1answer
63 views

Blocking or forwarding packets as access point

I set up my Pi 2 as a wifi access point following this tutorial. I'd like to implement a rudimentary QoS, according to the DSCP field in every packet's header. That means, blocking packets using low ...
0
votes
1answer
73 views

to allow certain ips and block all other connections on AMAZON EC2 ubuntu 12.04

How do I allow certain IPs and block all other connection in iptables on AMAZON EC2?
0
votes
1answer
202 views

is iptables broken on my raspberry-pi? how to fix?

I am getting some person(s) trying to brute force my ssh, from multiple ip addresses (small sample) : May 22 19:50:02 rpi sshd[1272]: pam_unix(sshd:auth): authentication failure; logname= uid=0 ...
2
votes
2answers
111 views

How can I allow SSH and SMTP only using IPTables?

I've got a raspberry pi set up to send me periodic emails. As it's connected to the internet 24/7, I need IPTables set up properly. I want to allow incoming SSH and allow emails to send out on port ...
1
vote
1answer
51 views

Help about CentOS 7 apps & Driver [closed]

I'm using pc for several years but never tried Linux so I'm quite noob in this field. I'm using Autodesk maya, Nuke & will learn houdini very soon. I found that linux works faster for this apps so ...
1
vote
1answer
51 views

Linux IPTables - Ignore Range of IPAddresses

I am currently modifying some of my IPtables rules on a public server and have run into a bit of a dilemma. The goal is to do the following: Rate limit the amount of SSH connections that can be made ...
1
vote
0answers
23 views

equivalent of iptables rule in ip6tables

I m newbie in the iptables. I have the following iptables rules in the source code of a project iptables -t mangle -I PREROUTING ! -i br0 -p TCP --dport 45 -j MARK --set-mark 0x1000 iptables -t nat ...
0
votes
0answers
83 views

firewalld isn't blocking/dropping ports for ports mapped from docker containers

I have firewalld installed and running on my machine. here are my active zones # firewall-cmd --list-all-zones ... drop (active) interfaces: enp2s0 sources: services: http https ssh ports: ...
0
votes
3answers
73 views

How does the iptables work with IPv6?

I would like to set up a firewall on Linux Debian for IPv6. It is important to use iptables for me. I have tried to change the ipv4 folder to ipv6. How can I set up iptables for IPv6?
2
votes
1answer
43 views

package from IP arrives at certain port => open portrange to IP for x seconds

I have been toiling with an issue on iptables: I am trying to make a portrange open to a specific IP for x seconds/minutes as a result of a single packet being sent to a specific port. Not exactly ...
0
votes
2answers
1k views

How to configure Centos 7 firewallD to allow docker containers free access to the host's network ports?

I have docker installed on CentOS 7 and I am running firewallD. From inside my container, going to the host (default 172.17.42.1) With firewall on container# nc -v 172.17.42.1 4243 nc: connect to ...
0
votes
2answers
107 views

Determine what port OpenSUSE firewall is blocking

I am having a problem with the WebStorm IDE in that I cannot use its built-in FTP capabilities probably due to my OpenSUSE (Tumbleweed) firewall blocking some needed ports. I am assuming that because ...
4
votes
0answers
82 views

Disable networking only inside of a single terminal

I want to run a command in the terminal to disable networking, just in that terminal. How can that be accomplished? I'm running OSX. Note: I only want to disable the networking in that terminal. ...
2
votes
1answer
244 views

NFS Port Blocking Firewall Issue

I am a little stumped on this one and maybe I have been staring at this for too long...but I cannot get my Mac (10.10.3) machine to connect to my Oracle Linux 7 (CentOS/RH 7) server with its firewall ...
1
vote
0answers
121 views

How to create a rule on IPCop firewall for bittorrent trafic to work properly?

I've been trying to use my favourite torrent client (µTorrent) after setting up my IPCop (last update 2.1.9) and it warned me that my router/firewall was blocking the traffic and that I had to open a ...
1
vote
1answer
74 views

Unable to access another server over local network on Digital Ocean

I have two servers. Let's call them A and B. Both are running ubuntu server 14.04. B runs percona server. Now I do not have any firewall set-up on either servers still I am unable to connect to server ...
0
votes
0answers
68 views

Forcing google/youtube safesearch on Ipfire

I use IPFIRE firewall os and even though it has a force safe search feature it doesn't seem to work. Would there be any other way to force this feature as I cannot seem to. Create a new cname in ...
2
votes
1answer
65 views

Close the neccessary Ports [duplicate]

I am using Linux Mint and I am newbie. Someone is trying to access my computer via my MAC Address and open port. I have some questions: I know that there are different type of port like TCP and UDP. ...
0
votes
0answers
227 views

How can I redirect internet traffic from local to proxy server with ip tables (DEBIAN 6)

So i made topology as shown in figure. Router have 3 interfaces like this: eth0 to internet side (with ip 192.168.1.10/24 gateway 192.168.1.254/24). eth1 to server-PC side (with ip ...
0
votes
2answers
342 views

Connection Timeout for ssh connection depending to the ip location?

I have a machine where I can connect it using ssh from different networks. But when I have moved to other country I have not be able to connect it. What may be the cause? I am able to ping the server ...
0
votes
1answer
89 views

mount times out with iptables --policy OUTPUT DROP

I previously ACCEPTed all output traffic by default. Recently changed the policy to DENY output by default, only opening ports needed for server/application functionality. When I tried to mount a ...
0
votes
0answers
267 views

CentOS as home network router: IPTables Port Forwarding failure

I have currently set up a home server with a CentOS 6.6 installation on it. The server has two NIC interfaces which I'm using it as my router and DHCP server. Here's a diagram showing the network ...
1
vote
0answers
90 views

CSF not blocking port when removed from csf.conf

I have removed VNC port 5901 from the csf.conf configuration file and executed a csf -f a csf -x and a csf -e to flush and restart CSF. There is a vncserver running on port 5901 and when doing an ...