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
13 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
24 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
7 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
18 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
28 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
12 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
35 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
16 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
19 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
37 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
43 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
46 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
22 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
24 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
39 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
97 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
64 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
172 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
93 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
45 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
66 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
33 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
20 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
104 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
32 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
22 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
137 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
43 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
120 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
25 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
42 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
66 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
114 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.. ...
1
vote
2answers
116 views

iptables/netfilter: What's the difference between PREROUTING and FORWARD?

I am trying to understand how this system works and I have problems to understand the difference between using NAT PREROUTING or filter FORWARD. From what I understand, the PREROUTE can send the ...
2
votes
1answer
57 views

loading “explicit” iptables rules on boot or interface up

I'like to load iptables rules on boot or interface going up on Ubuntu. Made a search on StackExchange and other places and looks like the most commonly agreed approach is either use ...
0
votes
0answers
26 views

set up iptables of poptop pptp on ubuntu

The VPS I bought have an additional ip address, which is shows as eth0:0. I want my pptp users to use this ip to access internet. but I don't know how to do it. I am using this right now -A ...
0
votes
1answer
119 views

Trying to block YouTube

I've tried two different commands in IPTables to block YouTube. They briefly work, but then, hours later, or the next day, I test it again, only to find that it comes through when I DON'T want it to. ...
1
vote
1answer
75 views

Configuring NAT with ufw instead iptables

I want to apply this iptables rule: iptables -t nat -A PREROUTING -d 87.13.180.182 -j DNAT --to-destination 192.168.0.13 (87blabla is my public ip and 192blabla is my private ip). People ...
1
vote
1answer
83 views

Can't connect from outside to my apache webserver using a free dynamic dns and IP

I am running ubuntu 12.04 and a web server apache v.2.2 on port 80.My connection to internet is based on a dynamic ip and in order to connect to my web server I want to use a free dynamic dns ...
-1
votes
1answer
64 views

How to open local apache website to the world? [closed]

I'm trying to enable HTTP port to be accessible from outside of my network. I currently have a public IP from my ISP. Do I need to set this up using iptables? sudo iptables -vL -n Chain INPUT ...
0
votes
1answer
65 views

How would I use ulogd2 on Ubuntu with IPv6?

I am trying to make use of ulogd2 (package ulogd version 2.0.3-1ubuntu2) on my Ubuntu server and I run into the problem that ip6tables fails: $ ip6tables -A INPUT -m limit --limit 5/sec --limit-burst ...
0
votes
1answer
69 views

How to redirect URL:PORT traffic to multiple external IP:Port?

Currently, I'm using iptables to redirect incoming requests for "website.com:27015" to "xx.xx.xx.xx:27015". Problem is, since iptables redirects via the port 27015, I can only redirect to one single ...
0
votes
0answers
36 views

VSFTPD acess only localhost

I configured a ftp server but I can't acess it. If I try ftp localhost in server terminal it works but if I try ftp SERVERIP it doesn't work....neither from filezilla. The server doesn't have ...
0
votes
1answer
55 views

Unable to run iptables commands

When I try running sudo iptables -L (or any other iptables related command) I receive the following error: modprobe: ERROR: could not insert 'ip_tables': Cannot allocate memory iptables v1.4.21: ...
1
vote
1answer
583 views

How can I open port 80?

I'm new in Ubuntu, and I'm trying to open port 80. I have already set my router in order to do so, and I also set ufw. Status: active To Action From [ 1] 22/tcp ...
1
vote
1answer
134 views

Forwarding ports with iptables not working?

I have an ubuntu server (14.04.1) which is asking as a router for my network. It has an internet facing interface, eth0, and a second interface, eth1, for connecting to my 10.0.0.0 network. I am ...
0
votes
3answers
94 views

Where are my iptables?

I ran the code: iptables-save -t nat -A PREROUTING -d 79.3.191.226 -j DNAT --to-destination 192.168.0.14 But I don't know if it worked since I cannot find the iptables file inside my directory. ...
0
votes
0answers
36 views

Redirect traffic between two Virtual Machines using iptables

The situation is this: I have an host machine running ubuntu and 2 Virtual Machines (Ubuntu and Windows) running in host-mode, so that I can see them from the host machine. Now what I want to do is ...
0
votes
0answers
34 views

Allowing Longview in UFW firewall; how do these iptable rules translate to UFW-commands?

Linode has some documentation on allowing its product "longview" to go through the firewall. It offers two commands for iptables: iptables -I INPUT -s longview.linode.com -j ACCEPT iptables -I OUTPUT ...
1
vote
1answer
93 views

dport is not working on iptables command

In terminal I type : iptables -A INPUT --dport 443 -j DROP And it tells me : iptables v1.4.21: unknown option "--dport" what is wrong with --dport?