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
2 answers

Jelastic configure firewall

I'm using Jelastic for my application and I just installed the Apache for it. The problem is that I need to set up a firewall for it, like iptables or other, after all is a web application and it needs security. How can I do that? The host said to…
abrasco83
  • 27
  • 5
0
votes
1 answer

I made a firewall script but not working properly

I am so new to iptables, i made this script to my VPN server (openvpn and pptp) but when i start it, i cant connect to it through PPTP. (OpenVPN works) What i missed ? And my question is it "secure"? Thank you ver much!!! #!/bin/sh # description:…
csib
  • 155
  • 1
  • 9
0
votes
0 answers

Block incoming traffic to webserver python

I am working on a basic IPS written in Python, which should protect a webserver. This is done for a school project, so it's mostly just a "proof of concept" kind of thing. The thought is that the IPS shall block any IP addresses that sends requests…
EscalatedQuickly
  • 400
  • 4
  • 22
0
votes
1 answer

How to packet drop based on tcp option field in linux

I want to drop incoming traffic of my Linux host based on TCP option field. Like TCP option 30 Multi path TCP. If packet contain multi-path tcp notation or option field 30, then my Linux host needs drop the connection or packet. My setup is host 1…
user680288
  • 49
  • 1
  • 10
0
votes
1 answer

iptables forward port over two eth cards

I have been searching the internet for an answer al morning, but I cant get it to work. If you can help me, I would be grateful. my Setup: server: eth1: 192.168.6.2 (connected to the internet -> WAN) eth0: 192.168.0.1 (LAN) local computer: running a…
Ace T
  • 21
  • 2
  • 11
0
votes
1 answer

Iptables: Multiple -d flags not allowed(-dport and -d)

I tried to add a command like this in my iptables: sudo iptables -A OUTPUT -p tcp --tcp-flags RST RST -d 2.25.52.5 -dport 6784 -j DROP And I got iptables v1.4.21: multiple -d flags not allowed I'm trying to drop RSTs sent from my machine to…
tartaruga_casco_mole
  • 1,086
  • 3
  • 21
  • 29
0
votes
1 answer

Blocked ip's from iptables to mysql

Dealing with iptables and php / mysql but no luck, I'm trying to find an solution to add blocked ip's ( yes, more than one at once ) from iptables to mysql. Is anyone able to help with this issue?
0
votes
1 answer

Windows Azure - Linux Virtual Machine - Opening a port for PgSQL

I'm trying to open a port on Windows Azure, and I have already: Open a port on Azure portal using NSG Open a port on Linux virtual machine (iptables) The port is open for all machines in the Windows Azure LAN network I can't telnet from my remote…
user5688790
0
votes
2 answers

Simulating network hops on a single Linux box

I'm trying to simulate many network hops, similar to Star Wars Traceroute. The author provided a script here, however it's designed for Cisco routers by using vrf, rather than Linux. Here is my current attempt; echo 1 >…
SleepyCal
  • 5,739
  • 5
  • 33
  • 47
0
votes
1 answer

Changes to iptable blocked all the ports, hence unable to connect to this Amazon EC2 instance through putty

Yesterday I was working on blocking of access to Redis server from out side doing by doing some changes to "iptable" file, unfortunately it blocked all the port which includes port 80 and 22 also, Hence I was unable to connect to EC2 instance from…
Ziaullhaq Savanur
  • 1,848
  • 2
  • 17
  • 20
0
votes
1 answer

Open/close port shell script

I found a script that allows you to open or close any port and save it to the iptables. The problem I am having is it throws a syntax error after I tell it to close, but before I can give it a port number. The issue is right before the first…
user2621157
0
votes
1 answer

iptables block outgoing request from php

We have a Ubuntu server that host a php server and game server. recently, we get a lot of dos and flood attack. so i find some rule for iptables can protect http and game port from attack. here is my rules: iptables -F iptables -P INPUT…
Amin Mastani
  • 3
  • 1
  • 3
0
votes
1 answer

list of tcp connections for particular port

I need list of tcp connections made where client has particular port for example : from my linux server need to check if any connection is made with client by 8008 port of client within last two minutes.. Is this possible or I m looking for too…
raheem52
  • 486
  • 1
  • 7
  • 18
0
votes
1 answer

iptables port forwarding to webserver thru vpn connection without installing nginx

I wonder if it's possible at all because i can't seem to do port 80 forwarding when webserver service is not installed. For example, this is my vpn server where a user or machine has connected: ppp0 Link encap:Point-to-Point Protocol …
0
votes
1 answer

Using netlink to add/update iptables?

am trying to write a program which does the adds/updates the routes in the linux routing tables. For that I am using struct rtmsg to update the data & send it to fd opened as NETLINK_ROUTE. 179 struct { 180 struct nlmsghdr n; 181 struct…
vindyz
  • 1,079
  • 2
  • 11
  • 23