||04-30-2008 07:11 AM
Some iptables settings for testing needed
I am using Fedora Core 8 on vmware with vista. my windows and linux can ping each other and I am also connected to another vmware via crossover cable. we all can ping each other no problems in that.
Now on Linux I am suppose to test some iptables commands. I am mentioning the ones below which I couldn't do and need help in that.
1) reject all traffic coming to all UDP ports (see if you can block all of them, if you cannot then try to block some UDP ports).
2) allow traffic coming to port 80 but reject traffic coming out through port 80.
3) block all email coming in and out of your network. Internal email is allowed.
What command to use for it and how do I test blocked UDP ports??
My another problem is testing. for internal network testing what we have done is put crossover cables in same subnet 192.168.1.1 etc.. and we all can ping each other and we are on same subnet. Now we are suppose to check some access from external network (like question 3). If we change the subnet of 1 computer to 10.0.0.0 or something we anyways cannot ping each other so cannot test any packets coming in or out. So via crossover cable is it possible to test external network and internal network both?