how to make connections?
http://i.imgur.com/E7IZu.jpg
Hallo everyone Here on the picture are 3 PCs. Default policy to DROP for all chains. Start each connectionless be initialized respectively by PC1, PC2 or PC3 in the specified instructions. PC1 can make contact with the PC3, but can not make the connection to PC2. Being able to connect to abv.bg, but can not to dir.bg. PC2 can make the connection to PC1. Being able to connect to abv.bg, but can not to dir.bg PC3 can not make the connection to PC1. Being able to connect to dir.bg, but can not to abv.bg can someone help me with the algorithm? |
The route can be used between PC, such as PC1 and PC2. The policy is used to control particular service, such as abv.bg.
|
What do you mean? I just need IP tables command in linux to do with the above conditions :)
|
Permitting connectons between PCs is not complicated.
Code:
iptables -A FORWARD -s PC1.ip.here -d PC3.ip.here -j ACCEPT Controlling access to websites can be done better with a transparent or authenticated squid proxy. You could try and do it in iptables but I suspect the results will not be as good. Code:
-A FORWARD -s PC1.ip.here -p tcp -m tcp --dport 80 -m string --algo bm --string "dir.bg" -j REJECT |
I means that if you want to control entire network, such as between PC, it is simple to use route instead of policy.
|
Can you tell me, how to do that step by step, cause I have never used Linux before.
I mean, where should I write the IP tables command. |
All times are GMT -5. The time now is 12:58 AM. |