Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.

learn more… | top users | synonyms

0
votes
0answers
13 views

Gufw log: rejected, denied and allowed connections

I have got Gufw installed, and I have set some firewall rules so that it rejects and allows certain IP addresses. And although I have set it so that it logs-all, I cannot seem to find anywhere where ...
0
votes
0answers
14 views

Two different Networks, 2xRouter some routing Fail need help!

I have some problems with my Settings, if someone can check it and analyze whats wrong. NETWORKPLAN MY current settings: /etc/network/interfaces Wan auto eth0 iface eth0 inet dhcp LAN auto eth1 ...
0
votes
0answers
11 views

Referanceing venet0:0 and venet0:1 in iptables on OpenVZ

I have an Ubuntu vps that is hosted with openvz. For a while now I have had trouble using the interface names in iptables, such as: (edited) -A INPUT -i venet0:0 -p tcp -m tcp --dport 80 -j ACCEPT ...
2
votes
1answer
66 views

Ubuntu 14.04 as router Destination Network unreachable

I am fightning with this for like 10 days now i really need to ask you guys, i hope someone has 5 mins time to explain me what i am doing wrong! For the start i wanted to configurate a router for my ...
0
votes
1answer
30 views

Preventing port scanning

I want to prevent my server from being port scanning from Internet and if port scanning occurs, block source IP address for several minutes. Below my current iptables config: Lilith> iptables ...
1
vote
0answers
15 views

Dnsmasq and Iptables for routing

I'm using a Raspberry Pi with two ethernet ports as a router. The network looks like this. "Internet" <--(…)--> Fritz!Box <--(172.16.x.y)--> [eth1, dhcp] Raspberry Pi [eth0, static] ...
0
votes
0answers
12 views

unable to start (Ubuntu server 14.04) iptables service it show “Unrecognized service”

Ubuntu server 14.04 iptables service start shows: Unrecognized service
0
votes
0answers
20 views

Web service only responding to local request

I have a webservice that listen on port 5678 on a remote ubuntu machine. netstats: tcp 0 0 0.0.0.0:5678 0.0.0.0:* LISTEN 10605/node I don't have any ...
1
vote
0answers
24 views

Using iptables to redirect all traffic to my localhost

So I've just installed DD-WRT on my router and I wanted to redirect all http requests to my local host located at 192.168.1.50 (port 80) but I'm unable to find any way of doing this. I've tried doing ...
0
votes
1answer
30 views

'iptables -S' to be accessed by www-data

I've had a look around on Ask Ubuntu and can't find an answer to what I'm looking for. Basically, I have an admin panel for a website I run and recently just installed fail2ban, which has made my ...
2
votes
0answers
70 views

Host to Guest one way connection issue

I have guest run on my machine on qemu with configuration: /usr/local/kvm/bin/qemu-system-x86_64 -enable-kvm -cpu host -smp 8 -hda ${TEST_VIRT_ENV_IMAGE} -m 4096 -netdev user,id=user.0 -device ...
1
vote
0answers
23 views

UFW open range is still blocked

I have opened up a range of ports using UFW. The rules in question are shown below (output of sudo ufw status numbered). I have restarted UFW since I added the rule, yet in lnav I still see log ...
0
votes
1answer
125 views

How to route transmission traffic

Trying to get Transmission to only use my wifi interface (wlan0), while everything else uses ethernet (eth0). I was able to bind Transmission to the wlan0 IP but can't get it to work unless I ...
1
vote
0answers
27 views

how to open a port under Ipv4 instead of Ipv6

How I can open a port under Ipv4 instead of Ipv6 on ubuntu tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - tcp 0 0 127.0.1.1:53 ...
0
votes
0answers
51 views

ufw on ubuntu doesn't work, how to deactivate plesk firewall?

Since I'm a totally newbie to server stuff but I needed to set up a vServer, I let install Ubuntu 14.04 AND Parallels Plesk on it. Now, I think it would have been better to install Ubuntu without ...
1
vote
2answers
96 views

Ubuntu 14.04 : Cannot access internet via terminal

I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue. However I cannot run any internet based command from my terminal ...
0
votes
0answers
43 views

iptables: write UDPv4: Operation not permitted (code=1)

I am trying to set up a stateful firewall using iptables. It is for use on my desktop machine. Below are the contents of my firewall script: #!/bin/bash iptables-save > ...
0
votes
1answer
30 views

Configure UFW to allow only established and related conections (on IPv4)

I want to configure ufw to deny everything except the related and established connections. On iptables I usually did : -P INPUT DROP -P FORWARD DROP -P OUTPUT ACCEPT -A INPUT -m state ...
1
vote
0answers
47 views

Noob user. No network (wired). Cannot ping router

Let me start by saying I am pretty new to Linux, so forgive my unavoidable noobness and thank you for readning this. I am trying to set up a good environment to learn programming and familiarize ...
0
votes
0answers
26 views

Dual Wan and lan configuration

Iam planed to configure a dual wan ubuntu router with dual lan. ie., eth0 and eth0:1. And ath0(192.168.1.1) should route through ISP 1 and eth0:1(192.168.2.1) should route through ISP 2. Please guide ...
1
vote
0answers
25 views

Transparent proxy listening on sub-interfaces

I have iptables and squid on the same box. HTTP traffic doesn't seem to be going through the transparent proxy when I change my rules on the filter table. What is the best point to filter http ...
0
votes
1answer
42 views

Errors with iptables/ipset (operation not permitted) while trying to block Chinese IPs

I'm not very experienced trying to do things like this, but I have been wanting to ban Chinese IPs from my VPS running Ubuntu (12.04 32-bit). I followed this guide, taking the time to read the ...
0
votes
0answers
22 views

Route teamviewer out secondary routing table

First question on here and im a linux newbie so please go easy =). I have a VPN tunnel that all my traffic goes through unless it is specifically told to use a different route table, vpnBypass. I ...
0
votes
1answer
53 views

“sudo iptables -L” takes a long time to load

For some reason when I try to run sudo iptables -L it takes a very long time to load. I am loading the rules from a script and it's on an Ubuntu server virtual machine through VMWare Fusion with 2MB ...
1
vote
0answers
25 views

Redirect connections from VPS to IP

I'm trying to develop my own "DNS" server using subdomains. Let' say I have this struture: VPS server with Ubuntu VPS server IP: 1.1.1.1 External computers on: 2.2.2.2 and 3.3.3.3 Subdomain ...
0
votes
0answers
27 views

Update dynamic IP and fail2ban

i have a script running via cron to allow ssh only through some known IP's. Since my Home-IP is dynamically associated i use this script running every 15min: #!/bin/bash ...
2
votes
1answer
41 views

DNS not resolving on same network only from outside - 3 days of headache already

I have a domain forwarded to my apache server let's say test.example.com. This works fine outside my home network I can reach it via mobile (4G). But on my laptop I can't reach it. Also I can't ...
0
votes
1answer
53 views

IP Tables allow HTTP and HTTPS

I am setting up a basic Firewall rules for my Laptop but I cant seem to get HTTP and HTTPS, thus using of the Webbrowser to work. My current rules are like this # 1. Delete all existing rules ...
0
votes
0answers
76 views

Restrict maximum number of independent IP connection on specific port at the same time

I set up a server as a socks5 proxy. I'd like restrict the maximum number(1 or 5 or 20) independent IP connection on specific port at the same time. I have searched on google, only see some articles ...
0
votes
0answers
27 views

Switch on Two Network Interfaces

I am trying to write script to switch between two interfaces on a Uuntu machine, wlan0 and eth0. My primary reference is: Forwarding traffic between 2 interfaces -A FORWARD -i eth0 -o wlan0 -j ...
1
vote
1answer
27 views

Adding firewall rule makes multiple entries

I am trying to add a rule to my Ubuntu 14 iptables to allow NTP (123) though using the command for allowing Incoming Traffic on Specific Ports Basic iptables How to? Here is my command: sudo ...
1
vote
2answers
47 views

Unable to share internet via NAT connection sharing

I've been using my Jetson TK1 Remotely via ssh and NAT connection sharing as described here. Earlier everything was working perfectly, but now whenever I try to share my internet connection by running ...
0
votes
0answers
140 views

Route only traffic on specific port through VPN

I would like to route only traffic on a specific Port. In my case for torrents through a VPN. For Transmission the port is 51413 I think. I only found tutorials how to set this up on a router but I ...
1
vote
1answer
79 views

iptables - redirect DNS queries

I already have the following iptables rules applied in order to masq all of the wlan1 traffic through wlan0. *filter :INPUT ACCEPT [48:6144] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [47:6078] -A INPUT -i ...
2
votes
1answer
187 views

Why does my firewall reset upon reboot?

I host gameservers on my dedicated server and was setting up the firewall a few days ago (had to set everything up again, hard drive failed and I forgot to back-up). Everything ran fine, firewall ...
0
votes
1answer
111 views

Can't connect to a server via SSH (with my PC only) [closed]

For some days I'm experiencing issues with SSH on my machine (I guess after having installed some software that I don't remember). It's very problematic as I use Git to work on some code projects ...
0
votes
0answers
77 views

iptables reject issue

Ive tried adding a basic rule to my iptables to drop an IP that keeps establishing a connection. I must admit this is a vm and the image was from bitnami with many of the rules already configured. ...
1
vote
1answer
80 views

UFW - How to make it easier and what are stealth ports can UFW have these? [closed]

Let me show u what I jusat wasted 2 hours doing: To Action From -- ------ ---- 22 REJECT Anywhere 23/tcp ...
0
votes
0answers
38 views

Setting up iptables of poptop pptp vpn on Ubuntu

The VPS I bought has an additional ip address, which shows as eth0:0. main ip -> eth0 second ip -> eth0:0 I want my pptp users to use the second ip to access internet. but I don't know how to do it. ...
0
votes
1answer
35 views

iptables nonexistent?

$ iptables sh: 1: iptables: not found $ sudo iptables [sudo] password for [redacted]: sudo: iptables: command not found $ /sbin/iptables sh: 3: /sbin/iptables: not found $ sudo /sbin/iptables sudo: ...
0
votes
1answer
166 views

Forwarding interfaces inside a docker container

I have created a docker container executing the following command docker run -it --net=none --cap-add=NET_ADMIN --name firewall ubuntu /bin/bash after I have attached it two interfaces eth0 and ...
0
votes
0answers
40 views

Setting Up a Routing Table for a Router

I have two network interfaces on my server. They are: eth0 - 192.168.1.2/24 gateway 192.168.1.254 eth1 - 192.168.2.254/24 no gateway as this interface is the gateway for this subnet I want ...
0
votes
0answers
30 views

Iptables: some ports are closed despite being open by my iptables; can it be something else?

Beginner question. I set up the following iptables rules: #!/bin/sh # Réinitialise les règles sudo iptables -t filter -F sudo iptables -t filter -X # Bloque tout le trafic sudo iptables -t ...
2
votes
1answer
234 views

ERROR: problem running ufw-init

I tried setting up ufw on my remote Ubuntu 14.04 server so i installed it and allowed ssh with the command sudo ufw allow ssh after that I tried to enable ufw but I get the following error: ...
0
votes
1answer
55 views

nmap showing open ports despite port close

I just set up my iptables with a DROP policy: -P INPUT DROP -P FORWARD DROP -P OUTPUT DROP -N fail2ban-ssh -A INPUT -p tcp -m multiport --dports 22 -j fail2ban-ssh -A INPUT -m state --state ...
1
vote
3answers
204 views

Ubuntu / Apache2: I cannot open port 443 [duplicate]

I am trying to install a SSL certificat on my Ubuntu 14 server (using apache 2). For some reason the port 443 appears to be closed I installed and enable ssl /etc/apache2/ports.conf is as ...
0
votes
0answers
28 views

How many rules can iptable handle in different machin?

I am trying to design a traffic shaping scenario . I am using iptables to create filters but i must create 80,000 rules. I want to know , how many rules iptables can handle ? I read different articles ...
0
votes
0answers
53 views

How to redirect TCP traffic from one virtual machine to another in Linux?

What is the simplest way to redirect all TCP traffic from one virtual machine to another in Ubuntu Linux and reverse? And what type of connection I suppose to use in VirtualBox?
0
votes
1answer
87 views

How can I allow ap-hotspot in ufw Ubuntu 14.04?

When ufw is enable android stuck in obtaining ip address and cannot connect to wifi. I try sudo ufw allow dhclient and sudo ufw allow dnsmasq bot both had ERROR: Could not find a profile matching ...
0
votes
1answer
153 views

IPTABLES - Forwarding 80 to 8080 to vagrant's apache

I was trying to forward my 80 access to 8080 with IPTABLES without success, then I read this answer And it finally worked for me, after all the IPTABLES configurations I tried this command made it.. ...