I am new for fedora and backend. And i have a job recently, to build a game server via linode. The current setup is 2 linode + 1 nodebalancer, I have a memcached server on each linode and I have setup memAdmin for moitoring memcached.
My question is, how to build the firewall rules that permitting S1 (memAdmin) to telnet S2 11211? Since my memAdmin is located in S1 and it need permission to access S2 memcached. I have try a few rule like:
iptables -P INPUT DROP
iptables -A INPUT -p tcp -s (S1's ip) --dport 23 -j ACCEPT
iptables -A INPUT -p tcp -s (S1's ip) --dport 11211 -j ACCEPT
i have even try the intranet ip address like 192.168.0.0/24 for -s, but it still not work. i have setting the OPTION in /etc/sysconfig/memcached to "-l 0.0.0.0", the memcached service is listening on ip 0.0.0.0, but i still cannot telnet S2 11211 form S1.
I tried to stop the iptables service. And I can telnet to S2 via my PC, but I still cannot telnet from S1 to S2.
I am a newbie, Please help.
The output of iptables -L INPUT -vn :
Chain INPUT (policy DROP 225 packets, 13464 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT tcp -- * * S1's IP 0.0.0.0/0 tcp dpt:23 7 420 ACCEPT tcp -- * * S1's IP 0.0.0.0/0 tcp dpt:11211 24 1314 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0