0
votes
2answers
11 views

How do I with ufw deny all outgoing ports excepting the ones I need?

I did the following: ufw default deny outgoing, sudo ufw allow out 80 which I thought would let me use the Internet but didn't can y'all help? Also are there any other ports used by Ubuntu for which ...
0
votes
1answer
13 views

Ubuntu forward ports, default state, forwarding not working?

im running ubuntu 12.04.4 server. I been googling the nett for answers, but could not find any.. I would like accsess a few web-gui's on my server. I have forwarder the ports in my router, worked when ...
-1
votes
0answers
6 views

Can I access the 4 addresses provided in the mac header of wirless 802.11?

I am writing a module that hooks a function on OUTPUT hook of the kernel netfilter. I want to access the complete information inside the mac header of the packet esp all the 4 addresses or in some ...
0
votes
0answers
19 views

using iptables to restrict VPN user access to internal network

So say I have a set up in which a single server running virtual machines and a pptpd server. The pptpd server hands out IP addresses in the 192.168.0.0/24 range. The virtual machines have IP ...
0
votes
1answer
63 views

Iptables and bind9 to forward to google's dns

Hello i have a very hard time on getting along with iptables and bind9 as my internal network dns server. It's configured to forward my queries to google's dns (8.8.8.8). The main problem is i can't ...
0
votes
1answer
46 views

Can curl localhost, but can't access port 80 from LAN

I can't find an answer to this question anywhere. I have ssh access set up, and can tunnel into my server. When on the server, I can curl localhost and get a response: curl localhost However, when ...
1
vote
1answer
97 views

linux command to prevent dos attack by using netstat and iptables

I want to DROP more than 200 requests per ip to prevent ddos attack. this is command that i used to detect requests count per ip : netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print ...
0
votes
0answers
106 views

help with iptables to redirect all traffic to local proxy server and output it

First I could say I am not so good at internet management and all this stuff is very confusing me... to my laptop, internet comes from wlan2 interface. It is being shared through interface eth0. ...
-1
votes
0answers
17 views

why might I not be able to connect to certain websites?

I'm trying to access a website which isup.me confirms is up and I can access when I boot into windows, but in Ubuntu Firefox fails to connect to it and I can't even ping it. I've looked at iptables ...
0
votes
1answer
30 views

enable port 9696 on ubuntu server

I am using ubuntu server lts 12.04 on vmware virtual machine. I need to enable port 9696 which is blocked or filtered. When i use the nc -v -w 1 localhost -z 9696 command it shows me the following ...
0
votes
0answers
45 views

Port won't open!

I have a server that want to allow connections into it through port 25565, but when I test on http://www.yougetsignal.com/tools/open-ports/ it says they are closed? I have no outfacing interface ...
2
votes
1answer
90 views

How do I use NAT in iptables

I have a domain set for my server, let's say example.com which is being forwarded by my router and is linked to my external IP 11.111.111.111 and it works fine if I ping the domain, or I do a lookup, ...
0
votes
0answers
25 views

Why are the ports not open?

I have a server which can be pinged, and if I look it up, you can see it's IP address. Although, I have forwarded the ports necessary (25565) on my router and I still can't listen on that port. My ...
1
vote
1answer
39 views

Can I have a dhcp interface in /etc/network/interfaces?

I have an interface already configured for an internal interface, which is static under eth0. My question is, can I create a dynamic outfacing interface under eth1. The reason I want to so this is ...
0
votes
0answers
48 views

how to set up iptables for dyndns server?

I have a server running with a dhcp public IP and ddclient updating my hostname from my public IP whenever it changes. My ISP has a feature for dyndns, so my router should automatically map my public ...
0
votes
0answers
44 views

Iptables help with server on 12.04?

I am trying to create a Minecraft server with port 25565 for me and my friends to access. I used to run one on my mac, where I would change the config for my firewall to allow connections through ...
0
votes
0answers
16 views

Using server as controlled switch

I have an Ubuntu server with 3 NICs installed. I have two classrooms. I want to control the two classrooms with IPtables separately. My problem is that I can't (bridge eth0 to eth1) and (bridge eth0 ...
0
votes
0answers
23 views

How do I make an outfacing dhcp interface?

I am running Ubuntu Desktop 12.04 and I want to make an outfacing interface that hands out external IPs mapped to my hostname for ease of use with Iptables. How should I configure this?
0
votes
1answer
156 views

Ubuntu and OpenVPN

Im trying to setup OpenVPN on Ubuntu and I can't get internet access when I connect. Only local ip of server is reachable (10.8.0.1) Please Help. My configurations: Server.conf ...
0
votes
0answers
22 views

A more complex iptables set of rules

I want to make a script that sees if a number of connection attempts are made from one or more IPs ($CT_MULTIPLE_IP_THRESHOLD) in an ammount of time ($CT_TIME). If this happens, than in that ammount ...
0
votes
0answers
42 views

How do I allow connections through my external IP in iptables?

Let's say I have an internal address of 192.168.0.2 and an external address of 1.222.333.4 My external IP should, by default, be mapped to my internal IP. But how should I allow connections into my ...
-1
votes
1answer
38 views

How to map my ipv4 address to external address in iptables

I want to run a minecraft server (port 25565) and have it send to my external address for others to play, then to my hostname (I am assuming this is automatic - Do I need a rule for this too?). But I ...
2
votes
1answer
41 views

persist port routing from 80 to 8080

I use amazon EC2 instance which works via ubuntu. By default according security restrictions I can't bin my application to port 80, so I just bind it port 8080 and then set routing redirect from port ...
0
votes
0answers
18 views

How do I add an auto updating file with DynDns?

I am trying to map my internal IP to my external IP. I have no option for a static IP and wanted to achieve my iptables configuration through Webmin. So What I thought was, to simplify the iptables ...
0
votes
1answer
52 views

How to limit the device's internet speed but not lan in wifi lan network in Ubuntu

Environment: A wifi lan network with ip 172.16.0.1 and name br0; A host in wifi lan with ip 172.16.2.12; A ethernet network interface with ip 192.168.1.133, name eth0; How can I limit host A's ...
1
vote
0answers
20 views

Connection on interesting ports (25, 110 etc) is NOT refused. Who/what accepted it?

I am running a VPS with Ubuntu 12.04. The only payload is reachable for me via SSH at port 2244, all fine. Running a scan from outside (angryip), I see that quite some ports are responsive ...
1
vote
0answers
36 views

Ubuntu Port 80 from some hosts not reachable

I have an ubuntu-server in a LAN. Whenever I try to run a Web-Server like apache2, or any other server like node.js on port 80 it is only reachable for some hosts in the network (the browser is ...
0
votes
1answer
40 views

l2tp, ps3mediaserver

What im trying to do here are to connect to an PS3 Mediaserver, thats located remotely behind an VPN. this is how my network looks like PS3 Mediaserver: IP: 10.0.0.116 Playstation 3: IP ...
1
vote
0answers
765 views

Setting up L2TP/IPSec VPN Server with OpenSwan fails during IPSec authentication

I'm trying to set up my Linode server (Ubuntu 12.04.4 LTS) to act as a L2TP/IPSec VPN server for when I'm traveling in China so that I can access Facebook/Twitter/YouTube on the go. I've followed ...
0
votes
1answer
81 views

IPtables is blocking wrong traffic

I'm very new to iptables but after some searching I managed to make a basic rules file which fits my needs. Everything seems to work correctly when I load it, except that I can't make ping commands or ...
0
votes
1answer
120 views

UFW not blocking connections to docker instance

I have a webservice running inside a docker instance which was run using the following command: sudo docker run -d -p 4040:4040 .... My UFW rules look like this: ~ sudo ufw status Status: active ...
0
votes
0answers
203 views

ssh: connect to host 192.168.0.5 port 22: Operation timed out?

I My ssh on my system isn't letting me connect from my remote system, I have ports 22, 25565 and 10000 set to allow incoming connections on iptables, but when I connect it gives me the timeout error. ...
0
votes
0answers
65 views

Captive portal setup and content of interfaces file

I am trying to design a captive by referring to this link Captive Portal Using PHP and iptables Firewall on Linux In initial setup(linux box router) it is said that my interface file should be as ...
0
votes
0answers
70 views

How do I bind my internal ip to my external ip with dhcp?

I am making a minecraft a minecraft server, I have forwarded the port 25565 and have done everything necessary for it to work, with a functioning DNS that updates from the external ip every 5 minutes. ...
0
votes
0answers
14 views

How can I save this configuration permanently? [duplicate]

sudo iptables -t nat -A POSTROUTING -s 10.10.0.0/16 -o eth0 -j MASQUERADE
1
vote
1answer
31 views

Used iptables to disable internet and now I need to undo it

I used iptables to disable access to the internet on one of my user accounts by following this thread. Since I was only doing it for testing I didn't want it to be permanent. Further web searching ...
0
votes
0answers
215 views

Minecraft Spigot Server BungeeCord and Iptables Help

I have had a BungeeCord server set up before and I know how it works. The problem I am having is with my iptables configuration. These are my iptables rules: #!/bin/sh #INPUT iptables -P INPUT DROP ...
2
votes
0answers
64 views

help understanding iptables router script and error

Hello I have this routing script that I'm using which runs when all the network interfaces are up: #!/bin/sh PATH=/usr/sbin:/sbin:/bin:/usr/bin # # delete all existing rules. # iptables -F ...
0
votes
0answers
88 views

Dual WAN in Ubuntu for 2 Different Proxy servers in One Ubuntu

I have Squid installed in Ubuntu. It had 1 LAN & 1 WAN and its working like charm. But on that ISP, some sites are blocked. So I got another Internet Link and it is WAN2 in Ubuntu. Now I want to ...
0
votes
0answers
107 views

Ping through GRE tunnel dicarded between 2 interfaces of a router - Ping does not reach subnet

I have an interesting issue that I hope someone can help with. I am trying to create a gre tunnel between 2 routers (running linux ubuntu 12.04) and pass traffic between 2 subnets trough this tunnel. ...
7
votes
4answers
381 views

Prioritize traffic from LAN computers

I'm running torrent client on my headless Ubuntu server. Also number of computers are connected to this server, which is used as internet gateway/router. The question is whether it's possible to ...
0
votes
0answers
62 views

VPN won't connect while ufw is enabled

I use a paid VPN service which uses OpenVPN. It works great and I have been pleased with it for months now. Recently, I enabled, and began configuring, the firewall that is provided with Ubuntu ...
1
vote
1answer
46 views

How ca I enable port to be accessible on public ip

I have Ubuntu server I am trying to the port 8550 to be accessible on the server public IP address, I can hit the web service running on that port from the server itself but not from the public IP ...
0
votes
1answer
31 views

Trouble saving iptables

I am having some issues with removing an iptable entry I have entered. I added -A PREROUTING -d 95.211.213.149/32 -i venet0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 1194 To experiment ...
0
votes
0answers
135 views

How to do NAT from server with USB 3G modem internet access?

Firstly, apologize me for confusing you guys with the tittle. I'm learning Ubuntu Server at my school (currently: configuring NAT, and DNS server). Sometime, I need to practice things which my master ...
1
vote
1answer
276 views

wrong ARP table entries after reboot

I created two Virtualbox machines, both with Lubuntu Server 13.10. Server machine has Virtualbox NAT network and Internal network (static IP 192.168.1.1), Client machine has only Internal network ...
2
votes
1answer
3k views

Where are iptables's rulesets stored on Ubuntu 12.04?

Ubuntu 12.04 LTS - iptables v1.4.12 TLDR: Where are iptables's rulesets saved when invoking iptables-save <ruleset-name> ? Explanation: According to this answer basic way of saving ...
0
votes
0answers
10 views

Throttle Bandwith for a specific user using iptables [duplicate]

I need to throttle internet speed for a user. More specifically I want to decrease it to 30 kbps from current 3.1mbps for one user. I search around, and found guides on how to do it using squid's ...
0
votes
2answers
78 views

ip address configuration in ubuntu 12.10

1) i am unable to edit /etc/network/interfaces and /etc/resolv.conf file with vi editor. how can i access the file as a owner? ![enter image description here][1] IP address 192.168.40.31 Subnet mask ...
0
votes
1answer
52 views

after software update, website not accessible

I just applied a bunch of recommended updates this morning (which seems to have upgraded the kernel to 3.8.0-32.47), and suddenly I cannot connect to the machine on port 80 (http) or 22 (ssh). Ping ...