0
votes
0answers
10 views

Is it necessary to open all used ports when using one Node.JS application to route from port 80 to apps on different ones?

I'm working with an Ubuntu 12.04 LTS, 64 Bit server there I have used the following commands to send all http request on port 80 to port 8080 Commands: cat /proc/sys/net/ipv4/ip_forward #returns 1 ...
1
vote
1answer
36 views

Relax ssh rate-limit rules for certain ip addresses

We've written some tools to automate common development tasks. One tool, for example, ensures all our git repositories are up-to-date. For this to work, our tool needs to connect to our git server and ...
0
votes
1answer
51 views

Forward all network packets from server A to server B (WAN) Ubuntu

I currently run a game server on a VPS and will shortly be moving VPS provider. To make the migration easier on the players I would like players to be able to use the original IP for a short while by ...
0
votes
1answer
201 views

Locked myself out of SSH with UFW

I had my server set up to accept SSH connections on port 21966, I followed some steps to configure ufw however it has now locked me out of all SSH access on any port! I've been able to boot my ...
0
votes
1answer
118 views

error when adding FTP port on iptables rule

I am trying to add FTP port on my iptable configuration which I suspect the reason I cannot access my FTP via FileZilla. /etc/iptables.firewall.rules *filter # Allow all loopback (lo0) traffic and ...
0
votes
2answers
131 views

iptables and CONNMARK on ubuntu 12.04

I have Ubuntu 12.04 on a multi-homed host. I am trying to use iptables to reroute HTTP packets coming in to a certain IP address to another IP address. From Googling, I believe it is necessary on ...
1
vote
1answer
147 views

bridge, vlan and internet access. How?

I'm trying to setup a working connection between my local network and the internet. First I setup a bridge (br0, has an IP address where the other interfaces don't) between eth0 (LAN) and eth1 ...
0
votes
1answer
338 views

Manually flush iptables in rescue mode

I ruined iptables and I can't connect to my Ubuntu 12.04.03 server... I activated rescue mode (grml) and this is what I get when I try to flush it: root@grml:/# iptables -F FATAL: Could not load ...
0
votes
0answers
73 views

Unable to access Splunk via port number on Ubuntu 12.04

Ubuntu 12.04 Server x64 & Splunk 6.0 I installed Splunk according to the documentation. Started Splunk as directed and I am able to see it running in the terminal. I believe I correctly added the ...
0
votes
1answer
69 views

Limit HTTP method on ubuntu 12.04 server

For starters, this is not a web server. I would like to allow or deny HTTP methods on various ports on the server itself. Ideally could write rules like UFW only extended to include the HTTP method ...
0
votes
2answers
198 views

restrict ssh, sftp access on ubuntu 12.04 through iptables or /etc/hosts.allow

I´ve tried to get into restricting access to a ubuntu server but i´m still unsure which way to go. the situation: We want to restrict access for ssh, and sftp to 4 clients with no static ip on a ...
0
votes
1answer
154 views

Adding a custom SSH port to Ubuntu 12.04 LTS through UFW

I am trying to configure a Ubuntu 12.04 based VPS and I have changed my ssh port from 22 to 803 and everything worked fine. After this I've installed UFW and now I can't login using SSH. Before I ...
0
votes
0answers
162 views

OpenVPN on Ubuntu 12.04 - unable to connect to internet

I'm trying to use OpenVPN on my Ubuntu 12.04 web server, but as soon as OpenVPN is running, I can't connect to the internet. Befor starting OpenVPN, route says: Kernel IP routing table Destination ...
0
votes
1answer
107 views

Automation of blocking IP address

I have an Ubuntu 12.04 machine running Apache2 which hosts about 10 wordpress websites. Recently I have been subjected to attacks from clients which seem to be sending POST requests to a wordpress ...
0
votes
1answer
425 views

/etc/init.d/iptables-persistent start returns fail but seems to work

I am trying to activate iptables-persistent on an Ubunutu server. Config files are located in /etc/iptables/rules.v4 /etc/iptables/rules.v6 I have installed the iptables-persistent package. ...
0
votes
1answer
63 views

Is there a way to restore iptables rules to the ones set after a fresh installation?

I have a server which is being kept behind a corporate firewall, so the corporate firewall takes care of all firewall issues. After making a fresh installation of the server, and setting the ...
1
vote
1answer
248 views

Amazon EC2 Servers with syslog-ng communication

I have 3 Amazon EC instances with ubuntu 12.04 Production Server (LAMP Server w/o MYSQL, syslog-ng client) Development Server (LAMP w/ MYSQL, syslog-ng client) Logging Server (syslog-ng Server) I ...
0
votes
1answer
109 views

iptables rule with destination address is not working

I've got 2 mangle rules: iptables -t mangle -A PREROUTING -d 54.228.209.255 -j MARK --set-xmark 1 iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-xmark 3 Now I do telnet ...
0
votes
4answers
92 views

iptable-restore sets INPUT allow all

This is my /etc/iptables/rules.v4 *filter -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT # Accepts all established inbound connections -A INPUT -m state --state ...
1
vote
1answer
135 views

IPTables quota not working on Ubuntu 12.04

I've been struggling porting IPTable rules from Ubuntu 10.04 to Ubuntu 12.04. The problem is that quota seems to be broken. Take this very simple instance of a quota rule. iptables -t mangle -A ...
0
votes
1answer
548 views

preventing squid forwarding loop with IPtables

I have a web application, and I'd like to limit file upload size. I thought I'd try using squid for this, via its directive request_body_size_max. I have my webserver running on port 8080, and I've ...
0
votes
1answer
2k views

How to reset Ubuntu 12.04 iptables to default without locking oneself out?

Could anyone kindly provide the commands to completely reset the iptables (firewall) for Ubuntu 12.04 to its default "factory" setting? From what I understand, doing this wrong would cause one to be ...
1
vote
1answer
229 views

Can't Access CouchDB Remotely

Please keep in mind that I have this installed on an Amazon EC2 instance running the latest version of Ubuntu Server. I have changed the bind_address to 0.0.0.0. netstat -an | grep 5984 yields the ...
0
votes
1answer
97 views

Interface ip address discrepancy

This is very strange. Output of ip route show: default via 192.168.1.1 dev eth0 metric 100 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.10 192.168.1.0/24 dev eth2 proto kernel scope ...
0
votes
1answer
231 views

IPtables: Forwarding

I have an Ubuntu machine running as a firewall. This machine has our static IP configured on eth1. It is connected to our network via eth0. I have a new server running Server2012 with IIS installed. ...
0
votes
1answer
326 views

Iptables tables rules being overwritten a few minutes after reboot?

I have some rules that I would like to apply, I added the following pre-up iptables-restore < /etc/iptablesRules to /etc/network/interfaces so that they would automatically be applied. After a ...
1
vote
3answers
2k views

Linux policy routing - packets not coming back [closed]

i am trying to set up policy routing on my home server. My network looks like this: Host routed VPN gateway Internet link through VPN 192.168.0.35/24 ---> 192.168.0.5/24 ...
1
vote
1answer
1k views

Port Forwarding Using iptables on Ubuntu

I have configured a web-server in MUX. Now I want to access that web-server from Internet. Ubuntu box has two interfaces, One is connected to WAN (Public IP) and another one is connected to MUX ...
1
vote
1answer
234 views

iptables drops some 80 port connections every 12 sec

I'm having strange issue. The problem is, that syslog contains (every 12 seconds) one logged/blocked connection, for example this one belogs to googlebot: iptables denied: IN=eth0 OUT= ...
0
votes
1answer
2k views

Can not open port 3306 on Ubuntu using iptables

I am trying to open port 3306 (for remote mysql connections) on my ubuntu 12.04 server machine but for the life of me can't get the damned thing to work! Here is what I did: 1) list current firewall ...
1
vote
1answer
144 views

iptables - ruby on rails mailer problems

Hey guys i am having issues with my iptables configuration. When i allow all packets my mailer in ruby works. When i deny all and have my rules setup i have issues sending mail. The output from the ...