Networking :: Ubuntu Gateway Server For Connecting Different Networks?
Mar 26, 2009
I have setup an ubuntu gateway server by using four NIC cards.
eth0 :210.212.235.107 is connected to the internet
eth1 :192.168.1.222 is connected to the local network
eth2 :192.168.2.222 is connected to another network
Here 192.168.1.222 is the gateway for 192.168.1.0 network and 192.168.2.222 is the gateway for 192.168.2.0 network.These network configurations are working fine, but i want to block inter network communication ie from 192.168.1.0 network to 192.168.2.0 network,i want to block the communication for securing the local networks more.I know iptable rule is enough for this purpose .But i cant find the apt rule for this purpose.
What i need to do is setup a gateway with 2 red networks, reason being 1 is my internet connection and the other is my bDSL connection for our IP phone system and i need an IP range of traffic routed to the bDSL rather than internet, i can do this on individual PC's but id like to do it at the firewall level so i dont have to configure each machine on the network.
basically i want all traffic to go to internet except for say 203.x.x.x which i want routed to the bDSL router and let it handle it. Ive dome some reading and it seems ipcop and smoothwall cant do it so i was hoping with some tricky work maybe i can get ubuntu to do it for me.
Whenever i used to setup a new connection in Windows it would just ask me User name and password here i need to fill up something called as "Gateway" !? The connection won't be accepted unless i fill up something in there... So, what do i put in there? I'm on a LAN of 3 computers connected with a router.The router takes one wire as input from the modem(cable).
I have 2 network cards in my computer, and I would like to connect them to 2 different networks. Both connections work fine when I use them so that the other one is unplugged, but as soon as I connect the second plug (doesn't matter which one is first) they both stop working.I've been googling and reading dozens of pages about how to set this up, but I still can't figure it out.
One connection gets its addresses from DHCP and that connection is used for pretty much everything. The other connection has a static IP, and is used to access just one other computer, which is in the same subnet as that static IP.I'm using Ubuntu and I've been using the NetworkManager Applet to manage my connections. If I've understood my googling correctly, NetworkManager Applet can't be used alone for this kind of setup, is that correct? (Even though it has that "Routes..." button and "Use this connection only for resources on its network" which I've tried for the connection with the static IP, but they don't seem to help.)
So my questions are:
1. So I really can't use NetworkManager Applet for this?
2. What software / tools should I use instead? (My googling brought up such wildly different solutions, and I don't know which ones are outdated, if any.)
3. Should I get rid of NetworkManager Applet completely?
I'm familiar with routing in theory, totally clueless about the networking tools in Linux, but happy to read manuals and happy to learn to use the command line versions if anyone can point me to the right direction.
I would like to my laptop to connect to two networks at the same time.The first network is wireless through which I access the Internet.The other network is a wired router to which my laptop and another computer are connected. would like to connect to the two networks at the same time so I can access the Internet, and talk to the other computer on the wired lan.My problem right now that I can only connect to one network at a time. Even the act of plugging in the cable for the wired network causes the wireless to cease functioning.Could somebody give specific steps. I am on Ubuntu 11.04.
I'm having another slight issue. On a clean install of Ubuntu Studio (10.10), I have installed network manager (manually, using .deb packages, one at a time, including all the extra ones it required) and I can only connect to non-secured networks. If I try to connect to our home network (which has WEP security), it sits thinking about it for a while (with the wireless light flashing, indicating it is doing something), but after a while, it asks for the WEP password again. it works fine if I turn the security off
I have ubuntu 11.04 installed. I have a D-link USB Wireless Adapter. Ubuntu detected it and it worked fine. I have a Beetel 450TC1 Router which broadcasts my internet connection. Ubuntu recognizes it, and keeps on trying to connect.It asks me for Authentication again and again.( Don't tell me to check the password again, it does work on everything else )And its not the router problem also, as I tried broadcasting through a laptop I have, Ubuntu again detected but couldn't connect and kept asking me for Authentication
using a text interface for my computing but I have run into an issue. Does anyone know of a CLI networking tool that will allow me to connect to a non-broadcasting network? I have tried cnetworkmanager and attempted wpa_cli. The first does not seem to support it and I have not played too terribly much with the second. I have discovered that when I boot my comps into KDE and tell NetworkManager to connect to the network cnetworkmanager can find it then, but that does me no good for what I want, which is to boot my computers straight to runlevel 3 and get connected. If it means anything I am running F11 on a Dell Inspiron 1521 Laptop with a Broadcom wireless card (awfully annoying to set up, but it is working fine) as well as F11 on a desktop of my own designing with a Netgear wireless adapter.
P.S. I realize that broadcasting the network would be the trivial solution but alas I am not the admin on the router and he is out of town.
Here is the setup I have. Two debain (squeeze machines) A1(eth0,192.168.33.1, netmask 255.255.255.0) and B1(eth0,192.168.43.1, netmask 255.255.255.0). They both have 3 nics'. So I am trying to connect to each other with a crossover cable and I have added the routes manually. eg: on machine A1 route added was
I have a created a wireless connection from the main admin account and checked the box saying "Available to all users", everything is working correctly. I only need to prevent the Desktop Users from switching the connection to another one.
I use Ubuntu 10.10 x64 at home. My company uses Microsoft RDS (remote desktop services, aka terminal services) at work and I'd like to know if it's possible to connect from home.
On a Windows machine, there is an extra tab in the remote desktop client that allows you to specify a secure gateway to connect through - this means you don't need to establish a VPN connection beforehand, it simply just connects straight away via an SSL tunnel.
I've looked at quite a few Ubuntu RDP clients and none of them seem to have this option.
Does anyone know if it can be done? Either that or I'd like to get my hands on a copy of the 64 bit linux Cisco VPN client that works. I've found a few copies around the internet but they always fail to install.
I have been messing around with Ubuntu on an old PC I have and I really like it so I wanted to dualboot the family PC with Vista and Ubuntu to see if I could also convert my parents into linux lovers too. I got ubuntu installed on a seperate partition and everything boots fine, but when I'm in Ubuntu, it won't connect through our wired internet but if I'm in Vista, the internet is fine. I really want to start using Ubuntu on this computer but there is virtually nothing I can do in Ubuntu without the internet working. I also posted on ubuntuforums but they have only asked me to get them a bunch of codes from the terminal, that unfortunately I can't read.. but maybe some of you may know whats going on. [URL] This is the link to the other forum with all the information. The computer is a Gateway GT5622 with a Integrated Realtek 8111B 10/100 Mbps Ethernet LAN.
I am trying to configure my android phone (rooted Eris running kaossfroyo 2.2) to be used as a midi controller. Which I am having enough trouble with as it is but it has raised an annoying issue that occurred a month ago when I used the phones tethering network with my laptop. After connecting the laptop to the phones network (either tether, or an Ad-hoc network created using the network manager) I am unable to switch to other networks. In other words when I'm done with the phone-laptop connection I cannot connect my laptop to my home network! When I click on the other network connection I can see that it is attempting to connect in the upper right corner of the desktop (the network icon) but it will not make the connection.
What happens is that the network indicator will make the little circle graphic as if it is trying to connect but it never will display the other circle as green indicating that it has connected. but when I disconnect from the home network that is not connecting I will get a message underneath that will say that ad-hoc network disconnected! If I am switching from the android tether it will say Android-Tether disconnected etc. Even though when I click on network manager it shows that I am attempting to connect to the home network (labeled LIBERTY in my case) upon disconnection it shows the ad-hoc or tether connection being disconnected.
I am absolutely baffled by this! The issue persists even after deleting the ad-hoc connection from the wireless settings tab!!! I would speculate that for some reason the laptop is attempting to connect to the previous ad-hoc connection despite me wanting it to connect to LIBERTY. I am very confused and hope someone can lead me in the right direction.
I am trying to get a Linux (Slackware 13.37) working in a Windows networking environment. The IT support for this organisation does not extend to Linux support, so I'm limited in what help I can get for this.
I'm trying to get to the point where I can get to the internet to download what I need on this Linux machine.
The situation is this (*fictitious addresses used) -My Linux machine uses a fixed IP address (10.100.150.21) My Windows machine uses a DHCP assigned IP address (10.100.150.213)Both Linux and Windows machine are configured to access the gateway server (10.100.150.1)So, I can ping the Linux machine from the Windows machine and vice-versa.I can ping the gateway machine from the Windows machine.I can browse Windows Shares on the network via SMB from the Linux machine.I CANNOT ping the gateway machine from the Linux machine with the Destination Host Unreachable message being the error message.
For actual internet access I need to access a proxy server but since the Linux machine can't even ping the gateway server, it fails to ping the proxy.Now, I have been told the gateway is a HW based router and for Windows machine they use some software for authentication to connect to the network. This software isn't available for Linux, so that's why I've been told to use a fixed IP address.My experience of networking is pretty basic and most of the Linux setup is done via running Slackware's setup program.
I got 2 servers, each on different locations (server 1 and server 2). I want all traffic on server1 included web browsing, applications etc., be always going through server2, like a gateway. I want the traffic to be encrypted (maybe use VPN?) So if I browse, or any logs pick up ip adresses from applications used by server1, I want it to display the IP address from server2 (Might be the wrong way to say it).
I always wants server2 to act as an firewall and logserver that logs all the traffic. I was thinking about using Snort for IPS/IDS solutions and OpenVPN for the traffic, but what can I use as a firewall? Most firewalls I find on google has its own OS/Distribution. Maybe Squid for logs? But squid does not support much protocols. Distribution on both servers are updated Debian/Ubuntu based.
I just set up a linux server which is acting as an internet gateway. For specific reasons, clients first make a vpn connection trough the internet to the linux server.
CLIENT ---->Internet----->Linux VPN Server ------> Internet
On the linux server iptables is configured for NAT. The problem is that the internet speed becomes slower than expected. I used windows and RAAS and the speed was pretty good. The server has only 1 NIC(eth0) and an alias interface is added to eth0. The alias is eth:0 with ip address 192.168.0.253
iptables config is as follows: iptables -P INPUT ACCEPT iptables -F INPUT iptables -P OUTPUT ACCEPT iptables -F OUTPUT iptables -P FORWARD DROP iptables -F FORWARD iptables -t nat -F iptables -A FORWARD -d 192.168.0.0/24 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to MY_VALID_IP
(Fairly new Ubuntu user)I have a Desktop with 2 network cards and a file share.I currently have eth0 configured and working on a network hosing about 30 people.Now I have another 50-60 people connected on a separate network that want to be tied into the same file share. I have configured both eth0 and eth1 for the networks that they are connected on. currently only eth0 works.When I configured eth1 for some reason It shows that it was last used "never".Is there a way to keep these networks separate and share these files from this server?
I have been searching google for a while now and have not found exactly what I am looking for. I would like to use my fresh install of ubuntu server 11.04 as my router/gateway for my home. I am not an expert at linux by any means but I can usually figure stuff out. I believe I need iptables, bind, and a few others probally. It eventually will also be a samba server but I have done a little with samba before. I do have 2 network cards, my router at the moment is starting to die and would love to have a more powerful router. I would also like to figure out how to do port forwarding in the router, as well as be able to see the load on the network cards. Maybe there is a program to show usage by user? As well as be able to do packet pritorization.
I want to do is setup a gateway(or router, idk what Ubuntu refers to it as.). So my set up would be Modem>Server>Switch>Router. I know that I need to set up it up as a DHCP server as well. I would also like to setup it up as a firewall too. I already have two Gbit cards that are already configured. So how do I do this? I already tried one tutorial, but it was old and was for Debian. I also installed ebox, but I couldnt figure that out either.
now existing GW set on the server is 192.168.1.1, mail receive and send through ISP1. now we wish to set somethings that once the ISP1 line is down, the server will auto switch to ISP2 gateway and continue send and receive mail without manually change of settings
The dhcp doesnt work unless i put a switch or router between the ubuntu gateway and the connecting computer.
setup
Code:
Code:
Code:
Code:
Im on ubuntu 10.04. is this normal? or should i be able to connect without having a router or switch between the ubuntu server and the internal network....
I need to place an Ubuntu machine on a network where I have a DHCP server which does not configure the Degault Gateway parameter (we don't want ordinary users to browse the internet). Is it possible to leave the machine using DHCP and define the Default Gateway manually (as in Windows XP i.e.)? How?
I posted it on another forum, but could not get response,So I have this cenOS, Ubuntu and windows operating system running on virtual machines.Now I gave them manual ip address, both ubuntu and windows machines can ping the default gateway, but not the CentOS.It should forward 0.0.0.0. to my cisco router address(192.168.5.254),
I have installed dhcp-server on ubuntu. And server is providing ip address to clients (Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information.
Since I have a new internetaccount, 2 days ago, I have a problem on my server [Fedora Core 8]. I use it as a router.
eth0 is for the internet. eth1 is for my LAN.
But since my new internetaccount my server uses eth1 for the internet. This is a line from my syslog:
Code: NetworkManager: <info> Policy set 'System eth1' (eth1) as default for routing and DNS. I killed the NetworkManager daemon and now it works but this must not be the way to do it? Where do I tell my server that I use eth0 for routing and DNS?
A server is acting as a router between two networks. If the load increases what happens, to the speed of network? whether the network speed will be reduced or it will sustain the same speed (Ex: 100MBps).
I've two networks (network 1 in the apartment, network 2 in the basement/server room) I would like to build a vpn connection between the two networks. In networks 1 I have a 24h running PC/Firewall/Debian Server. For network 2 I would like to buy a RVS4000. Is it possible to connect the two objects (Debian and Cisco)?
I was just wondering if someone could tell me the best method to connect all my hardwares together to achieve better result.HARDWARES.Cable ModemNETGEAR ROUTERNETGEAR FS728TS Smart switchLINUX SERVER WITH 2NICS.I want my dhcp server to serve 3VLAN networks. I need someone to show me how to do this. What do I need to do. keep in mind, I want eth0 to be used for public address only while eth1 for LAN. DHCP will be on eth0, but I need LAN on eth1 to be relayed back to eth0. This is my school project.
I have a home server that I have setup to connect to via SSH. All is working well with that. I would like to have the home server access the internet through a VPN. However, if I do this, I am no longer able to connect to the server via SSH, even though I know what its IP address is.