HD Install :: DSL and Linux Virtual Server project
Hi everyone,
I need help with a project I'm working on.
I have setup two boxes with an HD install of DSL and XAMPP.
Everything has been configured for each box to serve as a Real Server as outlined in the Linux Virtual Server Project.
The LVS configuration that is being used is LVS-DR.
Part of the instructions include hiding the local interface on the Real Servers using the following commands:
#hiding interface lo:110, will not arp
echo "1" >/proc/sys/net/ipv4/conf/all/hidden
cat /proc/sys/net/ipv4/conf/all/hidden
echo "1" >/proc/sys/net/ipv4/conf/lo/hidden
cat /proc/sys/net/ipv4/conf/lo/hidden
These commands need to be executed so that there will not be an ARP issue.
I have tried to execute the commands but found out that the directories are all non writeable. I also tried to change the directory permissions to make them writable using the command 'sudo chmod +w dirname' without success.
Any suggestions?
Thanks in advance!
p.s. I just now realized that this is in the wrong forum. Can this be moved to Networking?
You probably need the g (group) and x (execute) options as well:
sudo chmod g+wx dirname
This assumes that the group ownership of the directory is the same as for your user. If not:
chgrp groupname dirname
Hi skaos,
I tried 'sudo chmod g+wx /proc' and that worked. I then tried to do the same to the /proc/sys directory but that did not change the write permission.
The owner and group are boot set to root.
This project is very close to working. If I can get the directories /proc/sys/net/ipv4/conf/all & /proc/sys/net/ipv4/conf/lo to be writeable and add the file 'hidden' this setup that I'm working on would work.
If I am not able to do this, there is a kernel module that can be downloaded as source called noarp that would do the same thing, only I would need kernel sources to compile it. See this site for details -- Masarlabs - NoArp
Solution found!
After trying several commands to make the /proc/sys/net/ipv4/conf/ directories writeable and getting nowhere, I decided to do another search on the internet.
Using the search term '/proc/sys/net/ipv4/conf/all' on Google, I found this post.
It referenced another article that said between kernel versions 2.2.x and 2.4.x and higher, the file /proc/sys/net/ipv4/conf/all/hidden had changed to /proc/sys/net/ipv4/conf/all/arp_ignore.
Changing my commands to use arp_ignore instead of hidden did the trick and the LVS setup is now working.
Thanks for help everyone!
original here.