Iptables is a module that provides the Linux operating system functions of firewall, NAT and logging of data traveling over a computer network.

learn more… | top users | synonyms

0
votes
0answers
33 views

blocking port54370 tomato router

I'am having a huge amount of outbound traffic on my network. source port is 54370. Jan 16 00:34:55 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.11.88 DST=192.168.0.11 LEN=116 ...
0
votes
0answers
30 views

How to create two different open VPN link between two hosts?

I want to create OpenVPN tunnel between two Ubuntu 12.10 hosts which has two interfaces, say: Host1: eth0, eth1 Host2: eth0, eth1 A tunnel is wanted between: Host1 (eth0) <-> Host 2 (eth0) Host1 ...
0
votes
0answers
19 views

how to Connection from a remote system to another via multiple squid proxies?

I have a setup that sending data from host 1 to host 2 via proxy running different middle hosts. I don't want just routing packets in middlehost and send to destination. The reason is I run new MPTCP ...
0
votes
1answer
592 views

Can ping but can't connect (curl, wget, apt-get, etc.) (rasberry pi server)

Background: I am trying to set up a rasberry pi server. Everything was going well and my pi could apt-get update etc, until I got the port forwarding to work and ssh to work outside of the LAN. I ...
0
votes
1answer
148 views

iptables out bound port to remote mysql

Following is my iptables file on my centos, I am unable to open 3306 port to connect to remote mysql server. I dont know what I am doing wrong although it looks fairly simple. When I stop the iptable ...
0
votes
0answers
30 views

How do I reroute a DNS request?

I have a Technicolor (Thomson) Modem, and I want to reroute a DNS request coming from a specific IP to another DNS server. I have an iptables command looking like this: iptables -I PREROUTING -t nat ...
0
votes
0answers
23 views

Iptables rules for host-only interface

I'm in this situation. I have an host machine running Ubuntu and 2 virtual machines using VirtualBox. They're connected via the host-only option on the virtual interface "vboxnet0". What I want to ...
0
votes
0answers
33 views

How to acchieve what http_proxy environment variable does for all traffic leaving the system?

I set up a trafficserver (5.1.2) instance as HTTP cache on a machine in my local network and now I'm looking for a way to enforce the usage of the proxy for HTTP requests to the outside world on port ...
0
votes
1answer
50 views

Share Internet through Arch Linux VM

I'm working with a LAN which is behind a router that I don't control. The router admin has allowed internet access to one IP address 192.168.0.50. I would like to create an arch linux VM at that ip ...
1
vote
1answer
38 views

Iptables newbie pain

I got a host (WINDOW7) and a guest (DEBIAN7.7) virtualized by VirtualBox. I configure an eth1 interface as host-only. My host can ping the guest and vice-versa, host can connect via ssh too. Now I ...
1
vote
0answers
85 views

Limit connections per second with iptables/ufw

How can I tweak the following entries to allow more requests per second? Maximum hitcount is 20 if you do not edit some other config files. The entry of my /etc/ufw/before.rules file -A ...
0
votes
2answers
217 views

Port Forward inside Router (DD-WRT)

I have configured an SSH tunnel on my DD-WRT router using the default port 22. I would like to open another port on my router as a proxy port for SSH, say port 80, in case a firewall prevents me from ...
-1
votes
1answer
38 views

IpTables: rule to allowing outgoing traffic

I need rule to allowing outgoing traffic from intranet addresses 192.168.X.X to foreign addresses 123.123.123.0-63 and by using tcp Protocol. Sorry for bad english Thanks
0
votes
1answer
38 views

Remove iptables rules from recovery system?

I have a remote dedicated server and accidentally added some iptables rules that killed network access. I am only able to access SSH in recovery mode, which gives me access to the filesystem. I can't ...
0
votes
2answers
110 views

Can a Linux machine have two the same IP addresses on different interfaces/networks?

Is it possible to have two the same IP addresses and subnets assigned from two different interfaces/networks? How would such machine behave? How would route table look like?
0
votes
2answers
101 views

Blocking 127.0.0.1 in iptables?

I'm in the process of setting up some rules for iptables. Not wanting to make any errors I am currently only logging activity. The logs have shown a number of entries for 127.0.0.1 hitting my rules: ...
0
votes
1answer
167 views

FTP does not work properly when connected to OpenVPN

I am connected to an OpenVPN server and would like to list all files on a FTP server. ftp> ls 500 I won't open a connection to 10.125.1.20 (only to 31.x.x.100) ftp: bind: Address already in use ...
2
votes
1answer
46 views

Cannot retrieve http sites when using OpenVPN, but https sites work just fine. Why?

I am using a VPN provider that uses OpenVPN. I don´t wont any other traffic leave my computer so I have set up my iptables like this: iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P ...
2
votes
1answer
151 views

How to set up a hotspot with socks5 proxy

I have a laptop with linux installed on it. The laptop has two network interfaces: eth0 and wlan0. Normally I surf the Internet through eth0, and I've successfully set up a hotspot in linux for my ...
1
vote
2answers
45 views

How to print iptable firewall rules?

How does one print or dump the firewall rules being used by iptables in an effort to trouble shoot connection problems? I'm fairly certain its going to include -L or --list, but I'm not sure of other ...
1
vote
1answer
116 views

iptables - UDP Packets from unknown IP addresses

I'm really new to basic systems administration, and this question is a bit difficult for me to Google. I'm setting up a small raspberry pi server for my own personal use, to teach myself some basic ...
0
votes
1answer
39 views

What minimum'allows' should be used in iptables rules?

I have a Ubuntu 14.04 server which has two Ethernet ports: eth0 directly connects with a custom camera and eth1 connects via LAN cable to a wireless router. I had been developing a web application ...
1
vote
2answers
770 views

Openvpn connects and responds to ping but no internet access

I have an openvpn server running on raspian and a tunnelblick client on osx. I can connect to the VPN just fine but I have no intenet access. The server responds to ping just fine and the port is open ...
0
votes
1answer
95 views

how to save iptables rules permanently?

I want to keep some iptables rules permanence, so I just only add the rules manually: /sbin/iptables -I OUTPUT -p tcp --sport 80 -j QUEUE I am sure that the command works, because I could see it ...
1
vote
1answer
1k views

iptables duplicate traffic to another ip

This blog post has a template iptables rule to forward traffic, to and from the router to another ip address. iptables -t mangle -A POSTROUTING \ -d [IP to spy on] \ -j ROUTE –tee –gw ...
1
vote
1answer
55 views

Iptables: Filtering string encrypted by ssl

I need to filter (send to BANRULES set) incoming http/https packets with a certain string (matchword). I do it easy when ssl is not in use (port 80): iptables -A INPUT -p tcp -m tcp --dport 80 -m ...
0
votes
3answers
131 views

How do I set Input interface is output interface

I have eth0 with IP X.X.X.X and eth0:0 with IP Y.Y.Y.Y. My goal is if I connect to eth0 then output ip shoud be X.X.X.X and if I connect to eth0:0 the output ip should be Y.Y.Y.Y. Example: VPN ...
0
votes
1answer
30 views

iptables INPUT command

On a ubuntu1, this is iptables command: sudo iptables -A INPUT -p icmp -j DROP so on the other computer (xp1) I can not ping the ubuntu1.So this is OK. But On ubutnu I [[ can ]] ping xp1. and I ...
1
vote
3answers
219 views

Configuring IPTables to exclude webhost from VPN tunnel

I have a Raspberry Pi running as a server for my webhost. Raspberry pi is connected to a VPN service 24/7. Due to this, I am unable to connect to my webhost using my public IP address issued by my ...
1
vote
1answer
141 views

How to forward http request to a proxy server?

I have an Internet Linux server and my client computer (running windows) accesses internet via a SSH tunnel to the the server. Now for some reason this server can only accesses internet by a http ...
0
votes
1answer
59 views

Clients unblocking AWS S3 Content on their firewall

I have a website that serves out user generated content from AWS S3. I have a client that wants to use our website from behind a firewall. They are asking me to provide them with a static IP Address ...
0
votes
1answer
55 views

Creating a login portal for my WiFi

Me and my room mate often have a lot of friends come over to our apartment to play games and what not. So we are talking a lot of devices connecting to my router (cell phones, tablets, laptops etc .. ...
1
vote
0answers
107 views

Nodejs remote debugging ports closed

I have a problem with nodejs remote debugging. I'm using centos on remote server and phpstorm on my PC. When I open putty I type the command: node --debug-brk=5858 main_server.js, and get the ...
0
votes
0answers
62 views

DD-WRT route between vlan2:1 and vlan2

I've been trying to configure a Netgear R7000 with DD-WRT on board. My problem is the fact I have a private ip assigned to the WAN (vlan2) and a public ip assigned to vlan2:1 If I use only iptables ...
0
votes
0answers
52 views

iptables settings for Tomato

I am trying to figure out the iptables settings for my router. Right now I have two networks, a home network on br0 and eth1, and a guest wifi on br1. Home IP addresses are on 192.168.1.x, and guest ...
0
votes
0answers
56 views

Access two web servers (VPS and Windows Server) through the same IP (PUBLIC AND VPN) using VPN

I have two servers: a hosted VPS with a website on port 80 and a home server running Windows 7. The home server is running WAMP on port 88, which works on my home's public and local IPs. When ...
0
votes
1answer
30 views

How can I control specific traffic like UDP traffic with iptables on ubuntu?

If for example I would like to send just the UDP traffic to an IP-address, is it possible to do this with iptables ?
2
votes
0answers
100 views

Modify incoming packets before forwarding in Linux

I’m using a Linux (Debian based) system on which IP forwarding is enabled (/proc/sys/net/ipv4/ip_forward is set to 1). I can read the incoming packets using a raw sockets program, but I want to modify ...
0
votes
0answers
39 views

How to Ban an IP address automatically in ubuntu 12.04 when it sends specific packet to server?

I run a game server and someone is attacking with fake players. I want to ban him automatically in Ubuntu V P S. Any IPtables command or program that can accomplish this task? If it's not possible ...
0
votes
1answer
64 views

linux: how to troubleshoot forwarded port?

My home internet connection has a static IP address (eg: 123.123.123.123) I have configured my router to forward port 9000 to an internal host (192.168.1.101), which is running Ubuntu 14-04. I run ...
1
vote
1answer
184 views

Block traffic to LAN but allow traffic to Internet (iptables)

On my home network I am setting up a CentOS server that will be used by about a dozen or so for educational purposes - e.g. learn how to use the Linux shell and host websites, among other things. I ...
0
votes
1answer
28 views

About network traffic control

I have a satellite internet connection -> a pretty nice 8 processor server with 64gb of ram, running debian 7.7, two lan ports, one connected to the gateway, the other to the wifi router, wifi to all ...
0
votes
0answers
67 views

Map remote host to local ip (linux)

How can I map remote host to local ip? For example: If I map google.com to ip 192.168.1.15 so when i ping 192.168.1.15 i get forwarded response from google.com Maybe Iptables or something?
0
votes
0answers
93 views

Connections from virtual host to internet OK, but to rest of LAN, broken

In a notebook running Ubuntu 14.04 I have installed VirtualBox and created a virtual server with Windows 7. The PC is connected to a 192.168.x.y LAN. The virtual server is in a host-only network with ...
0
votes
1answer
33 views

Config to make only pcap receive packet

I am trying to use pcap to modify the packet before sending it out. For example, I have a server (running Ubuntu) listening on port 8000. Before it sends out SYN-ACK for incoming SYN packet, I am ...
0
votes
0answers
261 views

iptables snat does not change source IP

I am on ubuntu (with IP 10.0.0.1) trying to snat packets going out from port 9090. I want to change the source IP to 10.0.0.2 I have added the following rule through iptables: # iptables -t nat -A ...
1
vote
1answer
67 views

Debian 7 - iptables 'filter' not supported?

Am attempting to forward/ masquerade connections from WLAN0 to ETH0 as follows: sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state ...
0
votes
0answers
19 views

Packets are delivered to the host, which has the (dst) IP, but the application bound to the IP/port never see the packets

I have an iMac and a dd-wrt router. On the Mac side of things I have a proxy executable that I wish to use, but I've been unable to figure out how to make pf forward packets to the same host. ...
0
votes
1answer
102 views

IpTables -j REJECT to instantly block the loading on user browser

I have been searching for a solution to notify the browser on user that the request is Rejected so stop loading it. Because I have blocked facebook and every page that have a facebook plugin is ...
0
votes
0answers
91 views

Cannot SSH on machine behind NAT. DD-WRT router

I'm trying to remote access my home Debian from my other office. The home Debian is behind a DD-WRT router, connected from a ADSL modem (Yeh, it's dynamic IP but I have someone to tell me the WAN ...