i am having Ubuntu box with two nic,eth0:for private and eth1 for public with static ip assigned.
on eth0:192.168.30.1
eth1:x.x.106.111
I want to set this box as Default gateway for all the other machines and wan to do NAT ing on it.
But after assigning Ip address in eth1 i am not able to ping 192.168.30.0 network and Public Ips.
route
default x.x.106.1 iface eth1
x.x.106.0 * 255.255.255.
I have implemented advance routing fo load balancing and a script for and fail over on a Linux machine which run squid and dansguardian for proxying, i have three interfaces on this machine which are
10.201.108.254 eth1 external interface connected to service provider
10.201.109.254 eth2 external interface connected to service provider
I have just setup an F17 box as a firewall. Everything is working fine, except for one minor catch: In short, the firewall box itself cannot access any services (eg, dns, ntp) unless I explicitly open up ports for them on the wan interface.
I am trying to build a Computer to act as a internet gateway I installed Ubuntu desktop with two NIC cards installed.
I have a server (Ubuntu 10.04 server) that has two NIC.
Ok, so I am terrible with iptables so I need some help.
I have the following network schema:
Computer A: three nics:
NIC 1 (eth0): dhcp, public internet
NIC 2 (eth1): static 192.168.1.1, gateway for Computer B
NIC 3 (eth2): static 192.168.2.1, gateway for Computer C
Computer B: static 192.168.1.2, using gateway 192.168.1.1 (NIC 2).
Computer C: static 192.168.2.2, using gateway 192.168.2.1 (NIC 3).
So I applied this to get NAT workin
I'm wondering about this, and I can't seem to find an explanation on the internet.
I have a linux gateway which has multiple interfaces:
eth0: external ip
eth1: 172.16.1.1/24
eth2: 172.16.2.1/24
ip_forward is enabled.
IPtables is configured to NAT traffic from eth1 -> eth0 and eth2 -> eth0.
I have CentOS 6.3 running in a (virtual) machine with two Ethernet adapters. I have eth0 connected to a TCP/IP LAN and eth1 connected to a DSL modem.