To enable UDP traffic on port 1194 for both incoming and outgoing connections on a Debian system, you need to configure your firewall settings. This can be done using iptables
or ufw
(Uncomplicated Firewall). Here are the steps for both methods:
Using iptables
- Install
iptables
(if not already installed):
- Allow incoming UDP traffic on port 1194:
- Allow outgoing UDP traffic on port 1194:
- Save the
iptables
rules:
Using ufw
- Install
ufw
(if not already installed):
- Enable
ufw
:
- Allow incoming UDP traffic on port 1194:
- Allow outgoing UDP traffic on port 1194 (optional, usually
ufw
handles this automatically):
- Check
ufw
status to ensure the rule is added:
Verification
After configuring the firewall, you can verify that the rules are active by checking the firewall status:
- For
iptables
:
- For
ufw
:
These steps will ensure that UDP traffic on port 1194 is allowed in and out of your Debian system.
Server:
sudo tcpdump -i any port 1194 -XX
Client:
UDPSender.cpp
E:\Projects\VS_Projects\UDPSender\Debug\UDPSender.exe 47.93.27.106 1194 “Hello. This is a test message for UDP 1194.”