Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

we are having xen server free running on a remote machine,which is having a public ip,through which i am access the console...

When accessed through browser its showing a page to download xen centre.

i want that to be hidden,i tried iptables to block it by disabling port 80 from other ips.But after that i could nt access the xen server using Xen Centre.Is there a better way to solve this?

Update:

that was iptable miss configuration allowing 127.0.0.1 to connect solved this...

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Why not use iptables to block port 80 from all ips apart from yours? That would still enable you to use the console etc.

share|improve this answer
    
yes that was what i did.. it fixed browser problem but after that citrix xen centre lost its connection. –  ananthan Aug 9 '12 at 15:42
1  
Sounds like you got the iptables rule wrong- as this shouldn't have affected your connection. Xen Server is designed to use a console card on a seperate ip, rather than on a public ip for management –  AliGibbs Aug 9 '12 at 15:46
    
i setted this on a local machine and gave this rule iptables -I INPUT -p tcp ! -s my-ip --dport 80 -j REJECT but after this xen centre couldnt connect –  ananthan Aug 9 '12 at 15:49
1  
ohh...it was iptable miss configuration.. allowing localhost to connect fixed that...sorry.... –  ananthan Aug 9 '12 at 16:09
add comment

That was iptable misconfiguration. Allowing 127.0.0.1 to connect solved this.

iptables -I INPUT ! -s allowed-ip --dport 80 -j REJECT
iptables -I INPUT 127.0.0.1 -j ACCEPT
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.