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

How to route inbound traffic on one interface to another interface in the same machine?

I have searched the forums, but can't find a solution that addresses my use-case exactly. I need to do this on a remote machine and so don't have a lot of latitude to get this wrong (and possibly lock ...
3
votes
1answer
2k views

Using Ubuntu 14.04 as router with iptables, clients can't go online. Probably DNS issue, iptables setting needed

CORRECTION 3: SOLVED! I needed to add the the official DNS server of my departement's VLAN as DNS to the clients. I've read through a large number of posts about iptables issues when using Linux as ...
0
votes
1answer
82 views

network bridge not forwarding traffic from span port on router

I want to run several security network tools in LXC containers like ntopng, suricata, snort, etc. I hooked one of my server's NIC's up to a port that is spanned to my firewall... so basically this ...
1
vote
0answers
20 views

NATing ports selection using hardware detection

I have a linux box to be used as a router with a wlan port in AP mode. The internet input to the board may come from either an eth port (WAN mode) or another wlan port. There is also VPN running that ...
0
votes
0answers
34 views

Use Ubuntu as internet gateway

I do have the following setup and would like my ubuntu pc to work as the gateway to the internet: Access point: 192.168.2.1 Ubuntu (wlan0): 192.168.2.2 Various other clients: 192.168.2.x Now, ...
0
votes
1answer
52 views

Failover/ gateway issue. Help please

hope someone can help, this would be excellent. I’ve ubuntu DHCP server (10.04), which works great (many thanks to everyone who helped me in this excellent forum). This server has 2 cards, eth0 for ...
0
votes
1answer
1k views

Open port 8080 on 14.04

I need to insert into iptables to open 8080. With the iptables I looked at iptables -L it is so complicated and has many division I am not sure where to put the rule to open the port. Here is my ...
0
votes
0answers
24 views

iptables debugging on ubuntu 12.04

ufw was blocking the incoming ssh connection. So removed and purged the ufw still the incoming ssh connection is blocked. But there is not logs in dmesg output. I am sure sshd is running, tested ...
0
votes
1answer
431 views

what could be blocking port 5060 on my ubuntu 14.04?

I have a ubuntu 14.10, and am trying to telnet into it via port 5060 but I keep failing. I always get the message "Connection closed by foreign host". I checked my iptable, it is default policy to ...
0
votes
0answers
169 views

captive portal and squid3 transparent mode

http://aryo.info/labs/captive-portal-using-php-and-iptables.html I did at practice. but squid (transparent mode should be) entered in the access.log s pages can not see. I use the following iptables ...
0
votes
0answers
199 views

How do I delete all iptables rules that match a filter?

I'm making a captive portal. The default ruleset is created as follows: # Flush existing rules iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle ...
0
votes
0answers
143 views

ipset with iptables-persistent

iptables-persistent was not reloading my rules at restart, and I realized the problem was that /etc/iptables/rules.v4 contained a --match-set referring to a set of rules created by ipset - which had ...
1
vote
2answers
182 views

The program 'iptables' is currently not installed

I am a newbie, so my apologies up front. I am trying to get DansGuardian installed (which I believe I have) and working. To get it working I need to filter IP traffic through the app via iptables. ...
0
votes
0answers
117 views

Ncsa_auth squid on Ubuntu installation authentication

I installed squid on Ubuntu Server 12.04. worked smoothly. After Transparet mode to run iptables-t nat-A POSTROUTING-s 192.168.2.0/24-o eth0-j MASQUERADE I have run. and I got out to the internet. ...
0
votes
0answers
14 views

Restricting pptpd to certain websites

I've got basic VPN running on Ubuntu 14.04 (pptpd). I would like to restrict access when using this VPN to specific websites (meaning all other websites or ip's that aren't specifically mentioned ...
0
votes
0answers
67 views

Configure port forwarding from localhost:x to z.z.z.z:y without root

Our application needs to configure simple port forwarding on runtime. I'm talking about an iptables configurations like this: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD ...
0
votes
0answers
38 views

Is it possible to Disable TCP Sequence Number Checking in Ubuntu?

I want to disable TCP Sequence number checking in Ubuntu. I suspect that Ubuntu is dropping packets as Wireshark shows that the Packets arrive out of order. Is there any such feature in Ubuntu or ...
0
votes
0answers
76 views

iptables: route all traffic from wlan over VPN

I do have a PC with one ethernet and one WIFI connection and would like to route all traffic that comes through the WIFI over a VPN. How can I do this with iptables? So the setup is: ...
0
votes
0answers
100 views

Why iptables has pre-up and post-down rules

Why the iptables has post-down rule and pre-up rule? Is it necessary to have 2 rules instead of just one pre-up rule? https://help.ubuntu.com/community/IptablesHowTo auto eth0 iface eth0 inet dhcp ...
0
votes
0answers
702 views

vagrant, port forwarding, and iptables

Background: I am a newby learning Python and Django. Because my machine is Windows 8.1, I installed Vagrant with Precise 64. At first things were fine, then suddenly, NONE of my projects in the VM ...
1
vote
0answers
157 views

Connection refused - despite iptables rule is accept and port is open

I am trying to setup an ssh service. I am behind a residential router, and connecting to the desktop on a laptop computer. I use the the local IP of the desktop (192.1 ...) for address. The ...
0
votes
1answer
146 views

keep iptables up to date

I've installed iptables-persistent (Ubuntu 14.04) with the impression that it automatically saves iptables on shutdown but that appears not to be the case? It seem to load saved rules at startup but ...
0
votes
1answer
196 views

iptables-persistent not uninstalling

I'm running Ubuntu 14.04 and I simply want to uninstall iptables-persistent to test something. As suggested here ...
0
votes
1answer
62 views

Differences between UFW and GUFW

From what I have been able to piece together, the firewall that comes with Ubuntu is iptables, which is very complicated, so an easier way to access the firewall is through UFW and GUFW. UFW is ...
1
vote
0answers
155 views

Why aren't these ufw rules working?

I'm trying to configure ufw to only allow connections to 3 ip addresses on my local network, and deny everything else. Here's the commands I'm using: yes | sudo ufw reset sudo ufw default deny sudo ...
1
vote
1answer
230 views

Why is iptables getting double rules?

I have a server running Ubuntu 12.04. A couple of reboots back I started noticing that iptables rules get doubled upon reboot. This is what I get after a reboot (with added line breaks): $ sudo ...
1
vote
1answer
448 views

What are the IP addresses in my iptables chain FORWARD settings in a Dokku/docker setup?

I've been playing around with Dokku on DigitalOcean (following this guide) and I'm trying to understand current firewall settings. So here's my setup: Ubuntu 14.04 Dokku Docker (as part of Dokku) ...
1
vote
1answer
652 views

How do I write an iptables rule to limit Internet bandwidth usage of user or IP address

How do I control or limit Internet bandwidth usage of users/computer/IP address in network with the help of iptables rules? I have one static IP address which provides Internet (that is, WAN). I ...
0
votes
0answers
36 views

Unable to access shared internet connection

Thank for reading my post. I have setup Ubuntu 12.04 server on an unused box. My idea is to use it for development and as a router. I have 2 network cards installed. eth0 is connected to my ADSL ...
0
votes
0answers
578 views

Creating routes using iptables in ubuntu 14.04

I'm a newbie at ubuntu's administration although I've been using linux for a while just at user level. Let's show my problem. This is my network (only static IP addresses are used, for both private ...
0
votes
1answer
80 views

keep getting added to hosts.deny + iptables

I am confused to why this has started to happen. On my local network, if I click 10-20 apache/http links my server will decide to add me hosts.deny file and block me on iptables. Its not just ...
0
votes
1answer
350 views

Torrent applications getting slow download speed?

Allowed port in iptables with this command sudo iptables -A INPUT -p tcp --dport 6881 -j ACCEPT. After ran this command, Transmission client port shows open but in next 30 seconds it's shows closed. ...
1
vote
1answer
302 views

How to use multiple IP block list in Ubuntu peer 2 peer programs?

I would like to use several public IP block list (IP filters) in qBitTorrent or Vuze, on Ubuntu 14. What is the easiest way to do that and to get the lists updated? Note: This is not a discussion ...
1
vote
1answer
103 views

Ubuntu wifi hotspot cannot share network

I am using hostapd for my WiFi hotspot, and I can connect my WiFi perfectly until today. I have isc-dhcp-server and bind9 running on my laptop, because I want my laptop to be dhcp and dns server. ...
0
votes
1answer
956 views

How to open the ports on firewall in Ubuntu? [duplicate]

I'm pretty new to Ubuntu. I just want to open the most common ports namely FTP (port 20 TCP/UDP) HTTP (port 80 TCP/UDP) SMTP (port 25 TCP) ETC I've tried all the ways in iptables, ufw, and gufw. ...
0
votes
1answer
83 views

Iptables Issue can't SSH Remote Machines

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and ...
0
votes
0answers
119 views

Unable to connect to Chromecast

I seem to be having a problem connecting to Chromecast from Ubuntu. Unlike the question How can I use Chromecast, the issue doesn't seem to be firewall related. I have already tried opening the ports ...
0
votes
1answer
138 views

Help writing server script to ban IP's from a list

I have a VPS that I use as an openvpn and web server. For some reason, my apache log files are filled with thousands of these hack attempts: "POST /xmlrpc.php HTTP/1.0" 404 395 These attack attempts ...
0
votes
0answers
138 views

iptables rules keep showing up

I just installed an ubuntu precise server, after a few weird communications issues I checked the iptables list and found: Chain INPUT (policy DROP) target prot opt source ...
0
votes
0answers
55 views

Port Forwarding udp didn't work

the tcp forwarding work. My commands: sudo iptables -F sudo iptables -A FORWARD -j ACCEPT -p tcp --dport 3072 -d 10.42.0.84 -m state --state NEW sudo iptables -t nat -A PREROUTING -p tcp --dport ...
0
votes
2answers
126 views

Using Apache2 to set up a basic webpage

I am having a problem with a test page I set up for my website. The config file (index.html) looks like this <html> <head> <title>Welcome to website.net!</title> </head> ...
0
votes
0answers
90 views

How to make Charles proxy server accessible externally?

I'm trying to use http://www.charlesproxy.com/ to check what requests an iPhone app is sendins to a server. The concept is to set the proxy on the iPhone to Charles and start recording. The ...
0
votes
1answer
3k views

Can't ssh into server, connection refused

I can't ssh into my server. The server is on a private network administrated by me. Ubuntu is version 14.04. This started when I changed to a wired ethernet card. The client is MobaXTerm (latest) ...
0
votes
0answers
172 views

How to reset/flush remove ufw rules in recovery mode in ubuntu 12.04

Hello I think I have mistakenly locked myself from a remote server (ssh). I had a way to restart in recovery mode but it seems ufw is not even installed when in recovery mode. should I follow ...
0
votes
0answers
95 views

How to route between two separate internal networks

I've got two networks I'm trying to connect, both on different subnets. eth0 - 10.0.0.0/24 eth1 - 192.168.0.0/24 I've set up NAT for both on ppp0. Lets say Computer A (192.168.0.50) is trying to ...
1
vote
0answers
100 views

Passing ICMP between two interfaces

I'm trying to setup routing between two network interfaces on an Ubuntu machine. The first interface is the nic, connected to my LAN. The second interface is a tunnel dev created by OpenVPN. The ...
2
votes
1answer
2k views

Iptables rules no longer honored

I installed Ubuntu Server 64-bit 14.04 a week ago. It worked fine for one to several days, then out of the blue, iptables became meaningless (I noticed FTP and such are down ). Only ports 22, 25 & ...
3
votes
0answers
176 views

VirtualBox, Ubuntu clients, internal network proxy to supply internet

Probably this question was asked many times, but I seem to be unable to find proper solution. Here is my setup: Two virtual machines(Ubuntu 12.04) M1 and M2. M1 has 2 network adapters: eth0 set ...
2
votes
2answers
296 views

What is MASQUERADE in the context of iptables?

In Iptables many times I see the target MASQUERADE. What is that. I searched and find lots of things. But I need some one explain me what MASQUERADE is in a so easy way? **If you bring an example ...
0
votes
1answer
364 views

Redirecting external ports to local ip

I have a ubuntu 13.10 server and a registered domain name. I have a web server on my 192.168.24.1 machine and a ftp server on my 192.168.24.2. Using iptables I want: 1) people who write : ...