I'm quite new to Linux and using iptables. Here is what I am trying to accomplish:
I have an ASP.net client that talks with a web service hosted through web-logic on linux. The communication is over SSL.
What I am trying accomplish using
iptablesis only block the response back to the client.So the client makes a web service call, the web service processes the request and replies back to the client.
I want the web service to receive the request but block its response back to the client.
What I did for test purposes was flush all the rules from iptables. I created default policies for ACCEPT on the INPUT, OUTPUT and FORWARD chains. Next I added a rule to the OUTPUT chain to DROP anything which has the source IP of the client.
iptables -A OUTPUT -s client_ip_address -j DROP
Apparently, this made no difference. I can call the web service from the client and still receive a response.
Any help is appreciated?
-s client_ip_addressto be-d client_ip_address, since you want to block connecting out to the client? – Dan Fego Feb 1 at 16:19--state ESTABLISHED? (I'd say with-d, but you can also try-s). – Dan Fego Feb 1 at 16:34