I want to built a fire wall using iptables. My condition is
" inbound to 192.168.0.2 with a port of 80 from
172.168.0.1 should accept"
Answer Posted / ganesh
iptables -A INPUT -s 172.168.0.1 -p tcp --dport 80 -j ACCEPT
AND
iptables -A INPUT -s 192.168.0.2 -p tcp --dport 80 -j REJECT
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does in makefile do?
What is llvm used for?
Can I delete .bash history?
How do you create a text file in linux terminal?
What is cpu core in linux?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?
How do I get to root directory in linux?
What is makefile in unix?
What does uname do in linux?
What will happen when a system call is encountered in a user program?
How do I list directories in linux?
Explain about lpr filename?
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
How many linux commands are there?
Explain about sh?