0
votes
0answers
20 views

iptables will only allow access to my website from external net [duplicate]

I am having an issue with my new Debian Router / Firewall. I have a Ubuntu server hosting a website on my internal LAN. If i try to connect from outside my LAN, eg. my phone, I have no issues. But if ...
0
votes
0answers
90 views

debian multiple network interface multiple networks

I have a virtual environment with 3 virtual machines on one host. One of my virtual machines has 2 network interface. I need the virtual machine with two interfaces to connect to two different ...
0
votes
1answer
42 views

GW box not allowing internet from internal computers

I have a relatively new GW box ( CentOS 6.5 ) that can ping www.apple.com. When I change computers inside my network to use this GW as †he default GW, they cannot access the internet. So then I ...
1
vote
1answer
111 views

Iptables configure gateway virtual machine with 2 interfaces

I have a virtual machine that works like a gateway from other virtual machines. The configuration of the interfaces is the following UBUNTU: eth0: ip: 10.0.2.2 netmask 255.255.255.255 ...
1
vote
1answer
165 views

Configuring Debian as a gateway for two networks

Having a debian server with multiple NICs (eth0 and eth1) acting as a gateway. How would I be able to configure these NICs, so they can route the traffic from one to another. Network layout: ...
0
votes
1answer
610 views

iptables with DNAT and multiple gateways: How to route replies to correct gateway?

I have a problem setting up iptables rules and routes on a Linux client for a scenario with DNAT and multiple gateways: We have two gateways to the Internet. The first has a fixed IP, the second ...
1
vote
0answers
267 views

Using iptables to route all internal data to tun0 from eth0

Looking for a few answers ;) I'm running Zentyal on a gateway. The gateway is also an OpenVPN client, to a server I run out of another country. Interfaces are thus : External : eth1 (dhcp from the ...
0
votes
3answers
933 views

OpenVPN - Client traffic is not entirely routed through VPN

I installed OpenVPN on my dedicated server. Using Viscosity or Tunnelblick on the client, I successfully connected to this server. However, after some tests, I realized that not all the traffic ...
0
votes
1answer
1k views

gateway iptables dns redirect

I'm having a problem with redirecting pc's dns requests to a local dns server. I want to block access to other dns services except my own. I've found different methods of doing this, none work here. ...
0
votes
2answers
480 views

Confusion Post FedoraCore Upgrade: NAT / port forwarding trouble, and POSTROUTING MASQUERADE has unexpected influence on forwarding ports

Following a gateway / firewall system's hardware failure, a younger version of Fedora Core (17) was installed on new hardware, and the old 'iptables' and system-config-firewall files from ...
3
votes
2answers
132 views

Preventing endless forwarding with two routers

The network in quesiton looks basically like this: /----Inet1 / H1---[111.0/24]---GW1---[99.0/24] \----GW2-----Inet2 Device ...
1
vote
1answer
177 views

openvpn& iptables — portforwarding and gateway

The problem is similar to this scenario: iptables rule still take effect after deleted Scenario: There are several clients(C1~C10) providing some services, such as SSH,HTTP..... The clients are ...
2
votes
1answer
352 views

I need to change the external IP address based on source IP address

I'm running an iptables firewall with 5 aliased ip addresses (actual ip 10.64.18.1). This machine is also my gateway out for all internal machines (192.168.18.*). My problem is, when 192.168.18.65 ...
5
votes
1answer
1k views

Utilize two gateways on the same network same interface with load balancing

My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work. Edit: Netmask (as noticed in the comment) is ...
0
votes
2answers
1k views

iptables as gateway and POP3 SMTP ports

when trying to open the ports 110 and 25 in my iptables for outlook-only users, i cant do it except by forwarding as such: -I FORWARD -i eth0 -s 192.168.1.0/24 -j ACCEPT -I FORWARD -i eth1 -d ...
2
votes
1answer
316 views

iptables gateway not working on clients

I am not sure what's going on, but I have setup a gateway debian box with iptables and dhcpd server. The server is handing out the ip addresses to the clients just fine, gateway being set to the ...
3
votes
1answer
6k views

How can I use iptables to forward all traffic to a certain website?

I have a Radius server doing Mac Auth on VLANs. If the MAC address isn't in the allowed table, the user is put into a separate VLAN. What I want to do on that separate VLAN, is have my Debian server ...
1
vote
1answer
2k views

Linux Gateway: One network card how to masquerade from one subnet to another

Good morning one and all. In our network we have a single Linux machine that has aliased IP addresses. Each of these IP addresses sit on a network controlled by a remote router to an ISP. We want ...
0
votes
1answer
2k views

Enabling NAT forwarding using a second WAN interface and a second gateway on ubuntu

I have 3 interfaces: eth0 192.168.0.50/24 eth1 10.0.0.200/24 eth2 225.228.123.211 The default gateway is 192.168.0.1 which I want to keep as it is in the changes I want to make. I want to ...
1
vote
1answer
617 views

Poor iptables network forwarding performance

This is my firewall script: WAN_NIC="ppp0" LAN_NIC="eth1" DYN_ADDR="yes" iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables -t nat -P PREROUTING ACCEPT iptables -t ...
1
vote
2answers
948 views

preserving a multi-homed setup across reboots

Having read "two gateways / two providers with different ips", and the Clinton East article that it links to, I have successfully set up a multi-homed RHEL5 system. However, I am hoping for a better ...
3
votes
3answers
2k views

two gateways / two providers with different ips

I want to route packets coming in on eth0 back over eth0 and the ones coming in to eth1 back over eth1. I don't care which gateway is used for outgoing connections. If i just enter two gateways in ...
6
votes
7answers
3k views

How do you manage your Linux iptables configuration on a machine acting as a router?

I have a couple Linux machines that act as routers/firewalls for my networks and I have a script that runs all the iptables commands to set my rules. This seems to me like a really silly way to do it ...