Questions tagged [iptables]

GENERAL IPTABLES SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. An application that allows administrators to configure the packet processing tables provided by the Linux kernel firewall. Use this tag only for questions on programming with iptables. Questions about configuring iptables should be asked on Server Fault (https://serverfault.com/tour).

An application that allows administrators to configure the packet processing tables provided by the Linux kernel firewall. Use this tag only for questions on programming with iptables. Questions about configuring iptables should be asked on Server Fault.

Links:
Linux Firewall Tutorial: IPTables Tables, Chains, Rules Fundamentals
Iptables Essentials: Common Firewall Rules and Commands

2035 questions
0
votes
3 answers

What is the best way to forward all requests on a certain port to another machine on the network?

I have two dedicated servers and no hardware firewall. I'd like to forward all requests that come into the primary server on port 1008 to be fulfilled by another dedicated server on the same network. I know I need to set up some kind of TCP proxy,…
Mike Keen
  • 171
  • 1
  • 4
  • 12
0
votes
1 answer

can't connect to mongo shell seems iptables related

Just installed mongodb on centos 6. trying to connect to mongo sh with command "mongo" but got this error message: 2015-09-26T07:07:35.309+0000 W NETWORK Failed to connect to 127.0.0.1:27017 after 5000 milliseconds, giving…
Kenneth
  • 41
  • 5
0
votes
1 answer

Why does Capistrano lock up when executing a specific iptables command?

I'm trying to remotely open a port in a iptables firewall using Capistrano. Here's my task: desc "Open up a port in the firewall" task :open_port, :roles => :all do port = variables[:port] || nil if (!port) puts "You must specify…
Steve
  • 2,396
  • 2
  • 15
  • 16
0
votes
1 answer

How to use iptables to route an HTTP request to a private network

First of all I want to clarify that I am a complete noob in computer networks, so I apologize in advance if I am using incorrect terms or saying nonesense. Having said that, I'll try to explain my question as clear as possible. Let's say I have two…
Cas
  • 2,077
  • 3
  • 21
  • 24
0
votes
1 answer

iptables ip rule fwmark doesn' t work

I am trying to create iptables and mark it to ip rule. Marking doesn't work. # ip rule 0: from all lookup local 32762: from all fwmark 0x2 lookup rteth4 32763: from all fwmark 0x1 lookup rteth4 32764: from all to 93.xxx.xxx.xxx lookup…
0
votes
1 answer

Access remote MySQL (3306) via NodeJS returns No Route (113 MySQL)

I'm trying to access my VPS's (external) MySQL database over default protocol using NodeJS's MySQL connection. After a lot of debugging I found out, by even trying it on the virtual machine using the default mysql -h -u -p handle that I'm getting…
ReSpawN
  • 669
  • 4
  • 15
0
votes
1 answer

How to open ports in Linux?

I am working on a simple Node.js app. This requires a particular port to be open. For example if I want the app to listen to port (say) 5122, I will have to first open the port 5122. For this I have applied the following rule in my iptables iptables…
Jay
  • 744
  • 4
  • 14
  • 30
0
votes
1 answer

Centos 6.4 Nodejs external not responding

I am new to ssh and Centos 6.4 and I want to run nodejs on port 80. But couldn't make it to work external. When I type netstat -anp | grep 8080 I can see that my node listening. tcp 0 0 0.0.0.0:8080 0.0.0.0:* …
Ahmet Can Güven
  • 5,392
  • 4
  • 38
  • 59
0
votes
1 answer

When does Docker write to iptables?

When the Docker daemon uses icc=true and iptables=true defaults, iptables are not written when linking --link containers. Only when I set icc=false iptables=true does iptables get written when linking containers with --link. Is this an error or am…
Michael
  • 546
  • 1
  • 7
  • 19
0
votes
1 answer

iptables rule to match address suffix

I'm going to build connection load balancer, which will select route depending on last bits of destination address. It means I need a rule which will work as reversed CIDR. Is there any extension to iptables with will have such functionality ?
Jarek
  • 329
  • 2
  • 13
0
votes
1 answer

Puppetlabs-firewall Module isfragment Parser error

I have successfully installed and tested Puppetlabs-firewall module 1.7.0 with puppetserver 1.0.8 and with two fresh nodes running rhel 6.6 and puppet agent 3.7.5 I took one of our existing rhel 6.6 boxes and tried running the agent on it but I'm…
jacoulter
  • 730
  • 1
  • 9
  • 19
0
votes
1 answer

How to open a port on linux (Debian jessie)

I have a process that I'm running on my local machine which is listening on TCP port 9000. I would like to consume on another computer of my network. Here is my configuration: I would like to see it when I run nmap 10.18.12.12 but I don't know…
0
votes
1 answer

How to block access to an IP via a specific port

I have obtained a static IP for my machine. From a site (host by my IP), it send a query like http://x.x.x.x:1234.... . I have to change iptable configuration ( supposed) that no one else can send a query to my server. What will be its solution to…
Hafiz Muhammad Shafiq
  • 8,168
  • 12
  • 63
  • 121
0
votes
1 answer

Weird issue with IPTables and different Redis clients

I am trying to figure out how I can connect to a Redis client which should be blocking all Redis connections over TCP on port 6379. The ruby client I'm using, and telnet, can both connect and execute commands. The golang client I'm using can't, and…
Thomas V.
  • 601
  • 4
  • 12
0
votes
0 answers

ERROR 2003(HY000): Can't connect to MySQL server on 'local.****.com' (110)

I am continually getting the error in the title when trying to do a mysql dump as per below: mysql -hlocal.xxxx.com -uxxx -pxxx xxx < xxx.sql Looking around, I thought it may have been an iptable issue but I've since allowed the designated address…
ec3
  • 55
  • 1
  • 10
1 2 3
99
100