CentOS 5 Networking :: Router Pass-through Configuration?
Nov 18, 2010
I have a CentOS server that has some problems with the network configuration. I can't find the correct settings / help on internet
The computer has 3 network connections. ETH0 is connected to a router (a FritzBox 7050 with IP address 192.168.178.1). The ETH0 card has a fixed IP-address 192.168.178.22 - gw 192.168.178.1. Firefox as well as the webserver are working fine. ETH1 is not working (and not activated) because of problems with the drivers. ETH2 should be the intranet connection. This interfacecard has IP-address 192.168.17.1 and is connected to a switch. After the switch I have 1 computer attached with IP-address 192.168.17.3 - gw 192.168.17.1 A ping from the server to this computer gives good results and a ping from the computer to the server also. trying to ping to the fritz-box or to the internet constantly fails. As far as I can search, I'm certain that the failing is caused by routing-problems on the CentOS server.
the command 'ifconfig' of the server results :
eth0 Link encap:Ethernet HWaddr 00:1E:E5:D5:F1:C4
inet addr:192.168.178.22 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::21e:e5ff:fed5:f1c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code].....
View 1 Replies
ADVERTISEMENT
Oct 30, 2010
I've moved a linuxbox from being my gateway (nat, etc) to behind a new gateway (a DD-wrt router). For transparency purposes, I'd like to continue using the old box services, and just have the gateway in front of it.
Here's what I did:
The newgateway is setup for class C, 192.168.0.0
This configuration works, but sometimes it doesn't and I haven't figured out why yet.
At sometimes, clients on the LAN get throughput rates with very little speed loss (using speakeasy speed test). They will run at 33M on the LAN, running through both the newgateway, and the oldbox, and get about 35M with directly connected to the cable modem.
Other times, it seems nothing can talk with anyone, and I am not sure why.
I know what I have done is a little unconventional, but it's a transitional thing, and I am not sure it is the cause of the problem, although it was the last things changed.
View 2 Replies
View Related
Aug 14, 2010
I am thinking of moving the router behind a server and connecting the server directly to the internet via a modem. Are there any security issues related to doing this? or other things I should be aware of. Iptables are implemented on the server blocking access on unused ports.
View 2 Replies
View Related
Jan 18, 2011
I set up a bridge device but I can not figure out how to pass parameters into the ifcfg-vmbr0 in particular I need to pass:
maxage
ageing
fd and stp seems to be passed by DELAY=0 and STP=on the others? I have not found anything in the post, tips, docs how could I do?
View 1 Replies
View Related
Mar 20, 2011
I know you've probably seen this type of request numerous times, but I just can't get it right.Objective: to get to grips with Linux network routers.Problem: Cannot ping across the router.On the router itself, I can ping to clients on ether side.Server: Ubuntu 10.10NIC1: connects to home broadband router. Static IP address. Eth1 has no problem pinging outside world.NIC2: Static IP address. This NIC is configured for DHCP server and will have a home machine or two connected to it assigned IP addresses from the DHCP server.Set ip forwarding from 0 to 1
/etc/sysctl.conf
net.ipv4.ip_forward=1
Static assignment of IP addresses to the 2 NIC's of router.
[code]....
View 7 Replies
View Related
Nov 27, 2009
I want to configure linux CentOS 5 as a router using iptable, .Im new in linux so I need the steps to do that
View 5 Replies
View Related
Sep 20, 2010
I have a desktop computer (Ubuntu) connected to one of the LAN ports of the Cradlepoint MBR1000 router via an Ethernet cable. I also have a Verizon mobile broadband USB modem (USB760) plugged into the USB port of the Cradlepoint router.I also have a laptop (Ubuntu) with a wireless wi-fi adapter (802.11g). The laptop also has an Ethernet card but I'm not using it. The desktop computer does not have a wi-fi adapter, only the laptop does.
With the above setup, I have Internet access to both the desktop computer as well as the laptop computer, which I am well pleased with.Is there a way I can have file sharing between the desktop and the laptop, or at least ping between them, the way I have it set up? I can't use the ad-hoc method because for that to work each computer needs a wi-fi adapter. The router is using DHCP but can also be configured manually.
View 14 Replies
View Related
Jan 25, 2011
I m using an adsl modem router for connecting into the internet while my operating system is windows 7,but i want to learn open source platforms like UNIX and Linux. so for this reason i install a Linux distro which is centos5. i want to ask how i can configure my modem router with centos. modem router model is Billion BIPAC 5210s.i search internet for its drivers and the only thing which i found modem driver for windows platforms and nothing esle want to know that for installing this modem with my centos i need to download its drivers or not and if the answer is yes or no how comes !
View 1 Replies
View Related
Oct 2, 2009
just finished installing Centos5 and I had no problems installing it. But when I tried to connect to the internet, the trouble began.My network card is installed and the status is "OK". The network card is a "Realtek RTL 8168C(P)/8111C(P)".The status of the device said "Inactive" and when I tried to activate it, it came with an error: Failed; no link present. Check Cable?Now the cable is connected as it should be.So next step I did is put in a static IP. Now the activation works fine.However I still have no internet. I can't even ping to my router!I need some new drivers for my graphics card too, but first I need the network to work, than I can download other stuff..
View 6 Replies
View Related
May 8, 2011
How can I successfully SSH using SecureCRT from the Internet to my Centos Linux box at home behind the router? I have a DGL-4500 dLink router. I configured a Virtual Server in the router for SSH 192.168.0.182 Protocol 6 TCP public port 22 ? private port 22 Schedule Always Allow Inbound Filter Allow All. Further I Enable DMZ for 192.168.0.182. I got my Internet IP address through "what is my ip website." Now every time when I try to SSH, I get a message "The remote system refused the connection". Here is iptables -L command output;
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
[Code]....
View 9 Replies
View Related
Sep 3, 2009
I want to use centos as a developer server on my desktop before deploying my stuff to the internet.
I have a netgear DG834G router. It's IP address on my local network is 192.168.0.1 and connected to the adsl line. The router is set up to act as an dhcp server too. On the router I have reserved ip address for the nics per their mac addresses.
My server is on a dual boot desktop. The other boot is XP and works fine, picks up dhcp.
I don't know how to connect Centos to the router.
I have tried to play with the network manager but to no avail.
I can ping localhost, interface eth0 is there, but i can't ping to the router.
I have set the manager system/administration/network to get dhcp automatically.
I can't activate the eth0 although the hardware device says it is OK.
I've looked at firewall and iptalbes.
View 2 Replies
View Related
Apr 22, 2010
I have a box that I installed Elastix on as I'm trying my hand at Voip and Linux. I'm basically very green when it comes to Linux and the console. As I was following a guide @ engineertim.com to securing the box, it asked me to: wget [URL], But I get: Resolving engineertim.com... failed: Temporary failure in name resolution. I searched around and tried configuring resolv.conf to no resolve - :) unintended pun
I changed /etc/sysconfig/network to include GATEWAY=192.168.1.1 From the internet I have a modem-192.168.2.1, a telecom voip box-192.168.15.1, and then my router 192.168.1.1 I'm able to ping machines attached to the router but nothing beyond that. I tried to get the results for ifconfig via putty on this machine but it says command not found. I can get it when I log in at the box in question though.
View 10 Replies
View Related
Oct 26, 2010
I'm running Testing and need to pass some parameters to my bttv tv tunner card, for this reason I created the following file /etc/modprobe.d/kozumi.conf with this content:
alias char-major-81 videodev
alias char-major-81-0 bttv
options pll=1 radio=1 bttv_verbose=1 card=151 tuner=38 gbuffers=4
The problem is that for some reason this options aren't properly set after booting the computer, I've tried different combinations for line 1 and 2 without success.
I'm used to rmmod the bttv driver and modprobe manually with those settings but I'd like to automate the process.
View 2 Replies
View Related
Aug 9, 2009
I've just installed CentOS 5.3 on a Shuttle PC with an Atheros AR5001X+ Wireless card, and although the card is properly recognised and correctly identified by the OS, there seems to be a point blank refusal to pick up a signal from my network router, which is a Be*Box branded Thomson 585v7. I've previously successfully managed to get this PC and wi-fi card to pick up the signal from that router under other OSes including Kubuntu, openSUSE, Windows XP Pro and Windows 7 RC, but no luck with CentOS 5.3.
Clicking on Scan for Networks... in KWiFiManager doesn't even bother to scan for a network signal. From the very split second I take my finger of the mouse button, it instantly displays a dialog box which tells me . . . "The scan is complete, but no networks have been found."
How on earth can it actually find a network signal, when it doesn't even bother looking for any?! Wireless access is the only way I can get that machine online. A wired connection is not a realistic option, since the ADSL modem/router is in a front room downstairs, and all my PC's are in a back room upstairs, and would require about 10-20 meters of RJ45 ethernet cable and a lot of unnecessary extra work. The PC I'm currently typing this message on (running W7RC) is picking up the wi-fi signal with no problem.
View 17 Replies
View Related
Mar 26, 2009
I have been searching the forums for quite a while, to add extra Loopback adapter in Centos 5.1, but no success! Could you please suggest me the steps? in Windows, it is quite easy to add as many adapters as you want. wondering, if this is even possible in Linux? I have to run GNS3/Dynamips for router emulation and bind those Loopback adapters to virtual routers!
View 5 Replies
View Related
Jun 21, 2010
I have big folder I want to send it to my friend because it is over 20MB I can't send it by email so I want to put it on my website in a folder any time he wants to access it he should put uer name and passwod.I am completly new in that kind of stuff please let me know if any one know how to do it.
View 3 Replies
View Related
Dec 29, 2010
I'm in the process of starting a migration from an old postfix server to nice shiney new exim server however there are a few things i'm really not clear on and i'm hoping that some one here could point me in the correct direction. Okay the postfix server at the moment does the follwoing ( i'll try and keep this simple ):
* accepts incoming mail for users on multiple domains and puts the mail in the users mailbox ( external -> internal )
*accepts mail from users on multiple domains to pass on to the outside world ( internal -> external )
Obviously the POP and Imap functions are handled by other daemons.. I'd like to replicate this sort of setup on the new exim box, however the guides i can find only help with configuring the exim system for incoming mails ( external -> internal ) for multiple domains and i cant seem to find a guide that would indicate how to do both ( internal -> external and external -> internal ) on one box. I'm guessing i may have to do some sort of auth to get exim to accept and then handle the internal -> external side of things?
View 1 Replies
View Related
Jun 18, 2010
I lost my root .bash_profile. Have anyone, the .bash_profile contents of root to pass me?
View 3 Replies
View Related
Aug 22, 2011
I have very annoying problem with USB passthrough in Centos 6. My XLM guest file to forward USB ( I checked this manually and using virt manager) :
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x0d7a'/>
<product id='0x0001'/>
</source>
</hostdev>
[Code]...
View 4 Replies
View Related
Apr 13, 2010
Because of the configuration of my house, I need two routers.I have a DLink ADSL router as my main router and the Belkin N1 as my repeater.I have set up the IP address in the Belkin to be 10.1.1.10 - my DLink is 10.1.1.1. I have disable the dhcp in the Belkin and set the DNS as ISP provided. [URL]..I have set the channel to 11 and in the Ubuntu Network Manger I have set the IPV4 to Link Local Only. I can see the Belkin and connect with my PC.but it will not take me through to the internet.
View 9 Replies
View Related
Jun 18, 2011
I want to set up a Linux box as a wireless router to replace our existing Netgear WNR1000 router, as I believe the Netgear does not support the coming IPv6 protocol. Unfortunately, it is not flashable with OpenWRT or DD-WRT presently.
As we have Comcast, our cable modem acts as a dumb modem according to the customer support guy I talked to, and our router is the one that asks for the IP address from DHCP. Thus, when Comcast switches over to IPv6, I don't believe my existing router would work, correct?
My idea is to take a Linux box and put two NICs and a wireless adapter in it, using IPCop or Smoothwall to set up a router. I could then enable IPv6 support for when we have IPv6 with Comcast. Is that possible? Would there be a way to get BIND to hand out private IP addresses in the same subnet on the both the LAN NIC and the wireless card?
View 1 Replies
View Related
Nov 6, 2009
I have a desktop PC running Ubuntu 9.10 and Windows 7, and a Eee PC 701 laptop running EasyPeasy Ubuntu 9.04. I'd like to connect the desktop to the laptop with a wired connection (eth0), then the laptop to my ADSL router using wireless (ath0).
I have a crossover ethernet cable (I bought on ebay). I have set up my laptop with a static IP address on my LAN and it uses OpenDNS.
I have added this to /etc/sysctl.conf on the laptop:
net.ipv4.ip_forward=1
Then I tried this on the laptop:
sudo iptables --table nat --append POSTROUTING --out-interface ath0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT
This is a variation on what I found on other sites describing how to set up a router. I don't understand iptables very well, but I gather that the above two lines should set up forwarding so that traffic from my router to the laptop will be forwarded to the desktop, and vice versa.
But this doesn't work. The connection doesn't even establish between the laptop and the desktop.
View 12 Replies
View Related
Apr 24, 2010
I'm having trouble getting my network set up the way that I want it/had it. You see, when I first set up my network, I just had my cable modem going directly to my standard wired router (A D-Link DI-604), which had DHCP,and was connected to all of the computers on my network. I had one switch hooked up to one of the ports of the router, but this was a regular switch, and it would not try to assign IP addresses, it would just pass through the DHCP info as I wanted.
Now however, my network setup has changed. My room mate and I both got laptops, and we decided that we wanted to have wireless access so we didn't have to constantly plug in to the router.
Now my network is set up like this: The modem is hooked up to the router(DI-604), which is hooked up on the LAN side to our computers, our switch (which is hooked up to 3 more computers), and to a wireless router card (A Gigabyte GN-BC01).
The wireless router card has two jacks for ethernet. One for WAN, and one for LAN. The LAN side we have plugged only into the computer in which the card is installed.
Now the problem is this: The wireless router card comes with DHCP by default, and it's assigning addresses to the laptops and to the computer hat it's in, and worse, the IP addresses are on a different subnet than that of the main dlink router. The Main (dlink) router assigns addresses from 192.168.0.1 (itself) to 192.168.0.254, while the wireless router card assigns addresses from 192.168.1.1 to 192.168.1.254 (itself).
Because of this, I cannot access services on the wireless network from my wired network or vice versa. The first thing I tried was setting the card to assign addresses from 192.168.0.12 to 192.168.0.253, however it just said "internal error" when I tried to do this. I decided that this may be because it sees that it was being assigned an address on it's WAN side on the same subnet. So the next thing I tried was disabling DHCP and setting the "LAN IP Address" to 192.168.0.12, hoping that the DHCP would just go through the card, like a switch. I would have set the LAN IP address to be assigned by DHCP, but this was not an option, so I decided that'd be the best thing to set it to.
Once again however, setting the LAN ip address to an address on the same subnet as that of the IP assigned to it's WAN side caused it to report an "internal error". I verified that this was the issue by setting the LAN address to several other private IP addresses to test (I.E. 10.0.0.1, 192.168.3.1, 192.168.5.12).
My question then really is: How do I set up both routers so that I can access services and computers from each network from the other network. Should I set them with different subnets and set the gateway on the wireless network to the main router? To the wireless router card? Should I put them on the same subnet? Will it know how to communicate?
Here is a link to (picture) my network diagram. Network Diagram
View 2 Replies
View Related
Mar 26, 2009
These r IP provided by my ISP that i've put on Fedora 8:
WAN IP:xxx.xxx.xxx.17 (eth0)
Subnet:255.255.255.252
Gateway:xxx.xxx.xxx.18
Valid static(public) IP set of 2:
IP:xxx.xxx.xxx.147 & 148 (eth1, eth2)
Subnet:255.255.255.240
i want to run xxx.xxx.xxx.147 as a web server & xxx.xxx.xxx.148 as a ftp server. but I'm able to ping only xxx.xxx.xxx.17(WAN IP) from outside world. Can any1 tell me that how can i bring my 147 & 148 IP online without router.
View 6 Replies
View Related
Jan 25, 2011
I want to have a choice or more preferable pass shell as command line argument when I ssh to an linux account.i.e. If John logs in to account "zzz" on server "abc", by default definition of account "zzz" n server "abc" he get csh.But Sally desires that when she logs in to account "zzz" on server "abc", she needs the login shell to be ksh,and Rick wants bash when he logs in to account "zzz" on server "abc".What is the most non-intrusive / easiest way to achieve this? Each user can set their preference on ssh command line or create a simple alias by each shell, but not sure how to do this.
View 6 Replies
View Related
Apr 24, 2009
I have recently installed CentOS 5.3 in my system. I needed some help with the wireless configuration. Actually i have configured it and it shows the wireless name but it doesnt connect to it. in solving the issue.In the /var/log/messages , the following error appears :
Apr 24 20:46:51 localhost NetworkManager: <info> Activation (wlan0) starting connection 'OMWLAM'
Apr 24 20:46:51 localhost NetworkManager: <info> (wlan0): device state change: 3 -> 4
[code]....
View 1 Replies
View Related
Feb 1, 2011
There have been plenty of occassions when I've needed to setup a RHEL or CentOS box to act as a NAT router / firewall, and I am able to do this fairly easily by enabling ip_forwarding, and setting up a couple of iptables FORWARD rules and a nat rule.
However, what I'd like to do now, sounds in theory like it should be simpler, but I seem to be having a mental block and all of my searches pull up results about people playing around with LinkSys routers and so on.
Let me give an example scenario. Let's say I have two subnets, A and B. A has the IP range 10.0.1.0/24 and B has 10.0.2.0/24.
I have my RHEL box, with two NICs. One is connected to subnet A and has the IP 10.0.1.1/24, the other to subnet B with the IP 10.0.2.1/24.
All I want to do, is make clients on each subnet be able to talk to each other via my Linux box.
No, NAT'ing, no firewall rules, just straight up, good old-fashioned routing.
View 1 Replies
View Related
Jun 17, 2011
I have a webserver with 3 virtual interfaces named eth0:1 eth0:3 and eth0:3. Until yesterday all the virtual ip's worked but eth0:1 decided that it just won't work anymore since yesterday. The configs are:
eth0
Code:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=xx.xxx.26.190
NETWORK=xx.xxx.26.160
NETMASK=255.255.255.224
IPADDR=xx.xxx.26.174
GATEWAY=xx.xxx.26.161
eth0:1
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.175
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:1
eth0:3
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.182
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:3
eth0:4
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.187
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:4
route-eth0
Code:
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=xx.xxx.26.161
eth0:3 and eth0:4 still work, but 2 doesn't
View 4 Replies
View Related
Apr 16, 2010
I'm a Linux n00b (very fluent in Windows, though ) that is attempting to set up a (currently) 3-computer cluster. My server node is a Pentium 4, and my client nodes are a Pentium 4 and a Pentium 3 (whatever I have lying around ) I chose to use OSCAR for my clustering interface and CentOS 5 for my server node OS. Yay. I made it through the installation prerequisites, but when it came to configure the NIC, I got stuck.
I opened the /etc/hosts file, tinkered with it, but something inevitably got screwed up. I can still use the Internet, but it won't let me install OSCAR. Running a system-sanity check returns:
Code:
[root@SurgeonfishR ~]# system-sanity
Checking your system...
Success: ssh-check.pl
Success: tftpboot-check.pl
Success: selinux-check.pl
[Code]...
All I need to know is what the /etc/hosts file should look like for a CentOS 5.4 installation with 1 NIC that is not connected to a domain (only a LAN). It is connected to a router which in turn is connected to my home network (I don't know what to do about that). The hostname should be surgeonfishr and the IP address should be 192.168.0.150.
I know this question is probably really stupid, but I've logged a total of about 10 hours time on Linux...ever. (And 35000 hours on Windows.)
View 2 Replies
View Related
Jan 14, 2010
I want to create a small network of 3-5 computers. I want to have one computer as my server and have services like NFS, DHCP, NTP, etc. I want to connect it to 2-4 other clients that have the bare minimal installation of linux on them. I would like 1 client computer to have a static ip address and I would like another to receive a dynamic ip address from the server. How would I go about doing all of this without the assistance of GUI's? I want to be able to do all this with the ks.cfg and network config files.
View 4 Replies
View Related