Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL and Linux Virtual Server project, Cannot hide network interfaces< Next Oldest | Next Newest >
garcelj Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: May 24 2005,20:23 QUOTE

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?
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: May 25 2005,10:07 QUOTE

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
Back to top
Profile PM 
garcelj Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: May 25 2005,12:26 QUOTE

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
Back to top
Profile PM 
garcelj Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: May 25 2005,16:28 QUOTE

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!
Back to top
Profile PM 
3 replies since May 24 2005,20:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: DSL and Linux Virtual Server project

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code