Ubuntu Networking :: Apache Binds To Ipv6 But Not To Ipv4?
Sep 1, 2011
On my 10.04 LTS Ubuntu Server installation, apache2 doesn't bind to ipv4. It does bind to ipv6. I didn't notice this at first, because from my home connection I could visit the webpages without trouble. I noticed it running netstats -ta:
I'm running a native dual-stack (ipv4 & ipv6) dsl connection.So, I've been adding firewall rules, cleaning up unwanted processes, etc to tighten security.I'm left with only 3 processes that are listening to ports. mysql, ipp & ssh.Still not quite sure I need mysql. I run Amarok but without using a database, so I don't actually use sql for anything that I'm aware of.Anyway, my question is;Is it possible to make any any of these processes listen to ipv4 only or ipv6 only? Is there a distinction there at all?
Example- ssh is currently listening to port 22 on both tcp & tcp6. I do all my ssh connections using 'ssh -6', so, Can I make ssh listen to tcp6 only, or ignore tcp ?
messages appear in syslog each day. Each URL has from 2 - 6 attempts at various ipv6 addresses. My question is why is bind9 trying to resolve ipv6 addresses? I have done nothing to enable or disable ipv6 and thought that if not explicitly enabled I would not have to be concerned with it.
setting up NAT and firewalling for both IPv4 and IPv6. The machine is headless, so everything must be configured via CLI. I've done all IPv4 firewall configuration writing iptables rules in a bash script so far
How do I assign IPv4 and IPv6 static addresses permanently in OpenSUSE 11.2? Currently I am only able to assign either IPv4 or IPv6 static address not both. I cannot find even the interfaces file(/etc/sysconfig/network/interfaces).
I'm using Ubuntu Linux as my operating system.In my network only the ipv4 is suported, and I need to access some website through ipv6. How can I do it, is there a way to tunnel from the ipv4 to ipv6.
Question (and Google results aren't making this clear): Ubuntu has both iptables & ip6tables installed. 1. If I set a rule in iptables, does that rule also apply to ipv6, or just ipv4?
2. If "no" to above, then it would be prudent to *also* set ip6tables rules as well if I want to maintain an active firewall, correct?
3. Does ip6tables rules have the same syntax and behavior (more or less) to iptables rules - i.e. can I just copy my iptables rules & change "iptables" to "ip6tables"?
4. Any gotchas or issues that I should be aware of?
I installed it the standard way using emerge/portage, but it fails to start:
Code:
alpha skyer # /etc/init.d/apache2 start * Caching service dependencies ... [ ok ] * Starting apache2 ... apache2: apr_sockaddr_info_get() failed for alpha apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ !! ] * ERROR: apache2 failed to start
I'm used to have Apache unable to find pc's FQDN, as I don't set it, and it works without it.
From /var/log/apache2/error.log
Code:
[Sat Jul 23 06:41:12 2011] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "alpha"
Computer has IPv4 address set. I suspect that the nature of the problem is in the fact, that alpha has two network interfaces (it is used as router also). I've checked Apache conf files, but didn't find any meaningful directives to set interface or something similar.
I used to play with gw6c ( a client for tunnel broker ) It works well with fedora9 , fedora 10, but not with leonidas. my rpm is gw6c-6.0-0.4.beta4.fc9.i386.rpm ( a little old!) when I tried to install i have got this: libcrypto.so.7 est ncessaire pou w6c-6.0-0.4.beta4.fc9.i386 I try to make a soft link to libcrypto.so.0.9.8k, but nothing; The question :-Is there a solution for that pb - did you know a better client for non native ipv6 connectivity?
I have been struggling to get FC15 to act as an IPv6 router for a while now, am sure I am missing something trivial.. The idea is that I have a ppp / adsl connection (this works fine), use the wireless card on my pc with hostapd and dhcpd to provide connections to other pcs (works fine), and radvd to delegate ipv6 addresses.
The issue seem to be that as soon as I turn on ipv6 forwarding (net.ipv6.conf.all.forwarding =1), the ppp connection no longer gets an IPv6 address. This means the router cannot ping any ipv6 address outside my network.
If I disable ipv6 routing, my router gets an IPv6 address on its ppp connection, and can ping things such as ipv6.google.com just fine, however (of course) no packets are forwarded from my network and radvd complains that forwarding is disabled.
I'm forging a gateway server, We have 2 Internet connection that goes to a load balancer router, and goes to my centos server and from our server goes to a switch for Internet distribution or routing.
OS-CentOS 5.5 [root@server etc]# uname -srio Linux 2.6.18-194.el5 i386 GNU/Linux
My eth0 and eth1 has the following configuration and IP
[root@server etc]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] DEVICE=eth0 BOOTPROTO=none
[code]....
Disabling IPv4 packet forwarding but i already changed it to 1 at sysctl.conf One of the online forum says i need to configure the named.conf deleted some and run it(named.conf) and successful but still when I run network service I still get the :"Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0" The network is getting the IP range but it doesnt get any Internet connection.
Current problem: fresh, clean install of Ubuntu 7.10 on known good hardware does not use/produce/get/have an IPv4 associated with eth0, so cannot connect to my home network for Internet access.
Background: Have been wanting to build and maintain a home file server for some time now. Have also been wanting some hands-on practice to help me progress from Noob to Intermediate, eventually advanced Linux Tech. (I have two decades of tech support experience, but only small fraction of that using command lines and almost zero Linux.)
Anyway, every time I download and attempt to burn a recent distro on my Vista Shuttle, I only end up making drink coasters and mini-frisbees. so I thought that I might have better luck if I used a Linux Workstation to download and burn a server distro.
That's where I an now. I took one of my fully functional WinXP systems offline, replaced the WXP HDD with an old 3.2 GB, dug out my 2008 edition Linux Bible, popped in the DVD that came with it, and installed Ubuntu 7.10.
Everything else seems to have progressed smoothly, but I cannot seem to get the onboard Via chipset ethernet controller to talk to the router. When I run "ifconfig" in Terminal, I see IPv6 info, but nothing for IPv4.
When I try to configure eth0, it doesn't matter whether I set it up for DHCP or static... nothing works.
Is there a command line tht I can use in Terminal to manually configure eth0 to use IPv4?
Our router is pretty old and only capable of giving fixed ip and there is no support for IPv6. Via the gnome networkmanager I try to set a manual IP to 192.168.1.123 and a netmask to 255.255.255.0 and a default gw at 192.168.1.1 . However, this does not work.
If I open a terminal and type:
Code: sudo ifconfig eth0 inet 192.168.1.123 sudo route add default gw 192.168.1.1 Then I get a perfectly valid connection to the internet. ifconfig by it self returns:
[Code]....
ffor me it seems that the gnome network manager doesn't save the information that I gently ask it to.
I can fix it with the CLI commands, but I would like to know whats going on.
I've installed weechat, and it looks great in the terminal window .. tho, weechat uses F10 & F11 to scrool the channel nick list. those keys are already used buy the ubuntu terminal window. what/how should I do to fix it?
Normally I use 'netstat -an' to determine if a daemon is listening on a specific port. The excerpt of this command below doesn't list things like vnc (5900) on ipv4. It does however show it on ipv6. My issue is I want to know how to determine if it is indeed listening on ipv4 as would normally be seen with 0.0.0.0:5900. It would appear that all ipv4 ports are internally being redirected to ipv6. Of course this does simplify things, but it also leaves me unable to reliably determine the ipv4 listening status. How I can tell at a glance if a specific ipv4 port is being listened on? Is there a way to force netstat to list the ipv4 listens specifically? Code: art@eee1:/proc/sys/net/ipv6$ netstat -an Active Internet connections (servers and established) .....
Linux has duplicate address detection mechanism for IPv6 and nothing for IPv4 in kernel. At boot time, initscripts take care to check for the duplicate address but when an IP address is assigned using ifconfig or ip utility, no error is generated.
I have tried clean installs of Knoppix v0.6, Xandros 2.0, and Ubuntu 7.1... same issue with all. I cannot seem to get eth0 (via chip on mobo) to get/have/use IPv4. ifconfig shows only IPv6. (I cannot paste any info because linux desktop is on different box.)
End result is that I cannot get the linux desktop to connect to my lan, either with dhcp or with static ip.
I have a belkin router configured as my gateway 192.168.3.1 and nothing fancy with the setup. I have dhcp open for 192.168.3.245 thru ...254 and at most there are only 4 systems in home connecting with dhcp at any time. all other systems have static addresses.
I have two decades of desktop and lan support under my belt, but relatively small amount of command line experience and almost no history with linux (unless you count a dozen unsuccessful attempts to burn linux distro install discs on this Vista desktop).
Therein lies the start of my prob. I need to build and manage a fileserver for my home, but cannot seem to get a working installer cd or dvd to burn from anything I download.
So I said to myself, "Self," I said, "you're a tech. Build a workstaion, use the DVD that came with your Linux Bible (2008 Ed.) to install one of the linux distros on it, then download a recent, stable server distro and burn it using the linux workstation."
Unfortunately, if I cant get an ipv4 connection to my home network, I cant get out to the Internet to download any newer ISO files.
So what am I missing or doing wrong? How do I tell linux to stop trying to use IPv6 and let me use IPv4?
BTW, eth0 works just fine if I install Windows on that PC, so I know its not bad HW. Could it be a driver issue? Or do I need to use some Terminal command to turn off IPv6 and reconfigure eth0 for IPv4?
I am new to UBUNTU. I installed the latest one alongside windows 7. I am having problem with the internet connectivity. I configured the static ip settings right I guess. Edited the Auto eth1 and assigned ipv4 settings manually and entered everything correctly.
Address 192.168.xx.xx Netmask 255.255.255.0 Gateway 192.168.xx.xxx DNS Server xxx.xxx.xx.x, xxx.xxx.xx.x
Do I have to put MAC Address as well? Which is addressed as 'Network address' in Windows where I put this MAC. I have on board Realtek RTL8101E Family PCI-E Fast Ethernet NIC (NDIS 6.20) Network adapter. Do I have to install the driver?
Fedora 12 running under VirtualBox 3.2.8 w/ Bridged networking Host OS Windows 7
I have 3 IP addresses set up in on my Fedora 12 installation: Directory: /etc/sysconfig/network-scripts/ ifcfg-eth0 -> 192.168.0.170 ifcfg-eth0:0 -> 192.168.0.171 ifcfg-eth0:1 -> 192.168.0.172
Hostname is configured to host associated with 192.168.0.170 in /etc/hosts
When I reboot and execute # ifconfig
eth0 is associated with the 172 address and the other addresses are not active. After I run # service network restart
All of the addresses are active and associated with the correct interfaces. Content of my ifcfg files below:
Is there any IRC client that supports VI keys? The ''obvious'' script VimIRC is and has been broken for so long it's not even funny. Do you know any IRC clients on Linux, GUI or Curses, that provides some of that nice vi usability? Or could some of the existing clients be scripted to use? Irssi, XChat, even ERC would do?
I basically want to download a the differnet parts of a file using several interfaces and then want to combine them.
Something like:-
Code:
But, the problem is that I am on a faulty conenction so the connection breaks frequently. And I cannot resume using CURL.
So, I need an alternative download manager..I have tried looking at wget but it doesnt support binding to interface or either option to specify range of file to download..
I have Ubuntu 10.10 installed on my laptop. My ISP natively supports ipv6, but since last weekend, I do not get an ipv6 ip. When I use a live cd however, I do get an ipv6 ip. For as far as I can see, all settings (/etc/network/interface and the settings in network manager) are exactly the same.
Output of ifconfig:
Code: eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:XXX.XXX.XXX.XXX inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code].....
EDIT: is there a way to let the netwerk be automatically configured as happens during installation? It would be nice to start with a clean and new set of network config files as there were just after I installed Ubuntu on my system, without a full reinstall of my system.
I have a networking problem with my computer. Under Windows, the computer can get both v4 and v6 address via DHCP. However, the same computer can only get v4 address under Ubuntu. Does anybody know how to solve this problem?
I have tried to disable the ipv6 support in ubuntu 9.04 32bit but the /etc/modprobe.d/aliases does not exist so I can't disable the suport as sugested for the previews versions. I need to disable it becouse it is pounding a total maihem in my vamware machines.
some of you might have experienced the network speed problem that occurs when ipv6 is enabled. So have I. I know about the common workaround of disabling ipv6, but recently I tested the new ubuntu live system, and the problem was gone with ipv6 being enabled.
Now my question is: Do you know what ubuntu is making different? I haven't found an explanation. Is there a better workaround than blacklisting ipv6?