iptables rules work only for me [closed] - networking

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to block this ip 188.43.64.80.
iptables -A OUTPUT -p ALL -d 188.43.64.80 -j DROP
This rule work for my local computer - i can't ping this ip.
But it's not working for computers which connected to me
- they can ping this ip.
How can I make this rule to work in my network?
My network preferences - Internet from eth0.
Network from wlan0.

It's in the OUTPUT chain, which only affects packets that this machine is outputting. You want to add a similar rule to the FORWARD chain which affects packets this machine is forwarding.

Related

IP address configuration (kathara) [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
When you configurate some interface for a device using 'ifconfig eth0 xxx.xxx.xxx.xxx up' what's the difference bettween using IP like '192.168.0.2' and '192.168.0.2/30'.
I understand the idea of a submask and that it's good use for redirect datagrams only taking part of the IP address but I dont get why using it when assinging the IP for some interface.
I found out that using the submask when for assigning the IP address establish the range for the broadcast direction.
So using direction like '192.168.0.2' will establish broadcast on '192.168.0.255' but using '192.168.0.2/30' will use '192.168.0.3' since its the last avaible direction when you taking the first 30 bits.

Open port 22 in home router, but three computers have the same port open [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
If I open the port 22 in my home router so I can connect from the outside and I have three computers behind that router with the port 22 open where would my connection end up? In which of the three computers?
It depends on the router (configuration/software). In most cases it wont go anywhere. To have control over it you will need to redirect the traffic from port 22 to a specific IP address from the router settings.

Two ethernet adapter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have mounted two ethernet adapter on my pc and each of them has connected to a seperate network. The problem is that only one of them is active at a same time. In other verb I can ping only through one of them at the same time and if l want to ping another network l should disable the first adapter. So now l want to know how can I use both of them same time.
Avoid assigning multiple adapters in the same computer to the same subnet.When configuring multiple NICs, each NIC should communicate with a different subnet. Configuring two or more NICs on the same subnet may cause communication problems. Delve deeper in this article. There're also example scenarios using two adapters
Also you just can assign 192.168.0.16 to the first adapter, and 192.168.1.16 to another

IPTables - block a port on a specific condition [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
New to using IPTables as I am, I have a question which I am hoping stackoverflow can help with before I take the IPTables man file and doing something I regret...
I have an IPtables rule which blocks incoming requests when a specific connection limit is reached:
iptables -A INPUT -p tcp --syn --dport 7000 -m connlimit --connlimit-above 3500 --connlimit-mask 0 -j REJECT
My question is, would it be possible to block a ICMP (PING) responses when connections on port 7000 reach a certain limit?
Thanks in advance.
The answer is no. If you want to block ICMP, please use -p icmp instead of -p tcp.
The is one more thing should clarity: ICMP is layer3 protocol, but port number is defined in layer4. So you never find port number concept with ICMP.
(You can check ICMP packet format here : RFC 792)

How to determine the software used by the port 80 in windows? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How to find the software used by the port 80 in windows?
If you are looking for something as simple as knowing if a program is using a particular port on your computer, you can use the command netstat -b -a on Windows. If netstat is not enough, use TCPView
You may need some network analysis tools. It is fairly common to use a tool (or combination of tools) that perform port scanning as well as packet sniffing. By analyzing the packets, you can determine what is being communicated.
EDIT: Possible duplicates:
How can you find out which process is listening on a port on Windows?
What port is a given program using?

Resources