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
1 answer

Redirect IP-packets to my Application and then send them forward

I want to process IP-packets in my app like encrypting them, remove "bad" ones etc if they match some rule (say for example destination ip) and then send to destination. I think I can use for that purpose REDIRECT of iptables. I know that after…
user2123079
  • 656
  • 8
  • 29
0
votes
1 answer

Can iptables redirect specifc domain's request to a dedicated port which listened by proxy?

In android, i have a proxy daemon which listens on a dedicated port and would like to relay the visit of some specific domains,but not for others, for example: this proxy will relay the request for www.yahoo.com, but does not affect…
smart
  • 51
  • 6
0
votes
1 answer

iptables unable to use same target

I am unable to use the same target under iptables. can someone help please? iptables v1.4.21 Kernel: 3.16.7 iptables -t nat -A POSTROUTING -o eth0 -j SAME --to 1.2.3.4-1.2.3.7 iptables: No chain/target/match by that name.
0
votes
1 answer

Block HTTP_X_FORWADED_FOR by iptables

I have to 2 servers: - front - backend Front server is a proxy to backend I have no access to front server. So.. How i can block ip address in backend, if i see real ip only in http_x_forwaded_for header?
loga
  • 11
  • 4
0
votes
2 answers

Server side APNs push notification behind proxy

I need to send push notification using a control panel from server. The server is a Linux virtual Cloud box which is behind a proxy. The control panel is designed using J2EE with Tomcat I am using JAVA based…
Dickens A S
  • 3,824
  • 2
  • 22
  • 45
0
votes
2 answers

prevent Docker from exposing port on host

If i start a container using -p 80 for example, docker will assign a random outbound port. Everytime Docker assign a port, it also add an iptable rule to open this port to the world, is it possible to prevent this behaviour ? Note : I am using a…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
0
votes
1 answer

Can't connect to Tigase server running on EC2 Instance: Connection Refused

After installing Tigase on an AWS EC2 instance I keep getting the error message 'connection refused' when I try to connect to it using an xmpp client. The instance is attached to a security group with rules to allow traffic to the necessary ports…
smeis
  • 151
  • 9
0
votes
1 answer

node server available at port 80, but specified 3000 (iptables)

i have a serious problem! I have set up my first root server and i have no experience with server security. I used to run some node apps on localhost but now i have to run a app on that server. The node app works. I have specified in my index.js…
Wolfgaung
  • 53
  • 5
0
votes
1 answer

Convert iptables line to command-line syntax for CSF bash script

This is the question about command-line iptables syntax. I have the following chains in /etc/sysconfig/iptables # Generated by iptables-save v1.4.21 on Fri May 22 07:51:03 2015 *nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT but I…
Serge
  • 679
  • 1
  • 9
  • 23
0
votes
1 answer

Iptables locking me out of SSH

I was in a SSH server and ran the command iptables -F and the server froze. Since then I just can't login back again. After some research I found that that command can freeze if you are in a SSH server. The question is. How can I "revert"…
undisp
  • 711
  • 3
  • 11
  • 34
0
votes
1 answer

delete all rules from iptables

I'm make a shell script have some rules to limit connection on port Then it's effect badly on my vps Script : #!/bin/bash # Window of time in seconds SECS=60 # Max connections per IP MAXCONN=5 iptables -A INPUT -p tcp --syn --dport 5222 -m state…
deounix
  • 141
  • 2
  • 4
  • 18
0
votes
1 answer

How can one filter LOCAL ADS for LOCAL CUSTOMERS

I run a local blog, and I would like to offer advertisers the ability to buy ads knowing all of the impressions will be from the local community. For everyone else I want it to show typical google ads. My questions are: How feasible is this? Is…
Serhiy
  • 2,505
  • 3
  • 33
  • 49
0
votes
1 answer

how can firewall/iptables check incoming tcp traffic of already bound ports?

As far as i know only one process can be bound to a port of the same protocol, and in order to read incoming information to a port a socket must be bound to a that relevant port. is there a way of sharing a socket with another process or something…
user3371266
  • 69
  • 1
  • 9
0
votes
1 answer

iptables / cherrypy redirection changes request mid-processing

Sorry for the vague title, but my issue is a bit complicated to explain. I have written a "captive portal" for a WLAN access point in cherrypy, which is just a server that blocks MAC addresses from accessing the internet before they have registered…
zinfandel
  • 428
  • 5
  • 12
0
votes
1 answer

Bind Phantomjs to a Network Interface

I currently have multiple network alias (eth0, eht0:1, eth0:2), each having their own private ip which has its own public ip. When using remote web driver with phantomjs (ghostdriver), it always chooses the local host (See BUG…
1 2 3
99
100