How to confirm a low number port (67 UDP) is closed?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Based on this answer closing port 67 UDP outgoing should be
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p udp -m udp --dport=67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j DROP
firewall-cmd --reload
Port 67 UDP is the port a DHCP server uses, so I would like to verify that the port is indeed closed before I start the dhcp server, so I can experiment with it in a sandbox.
Question
Since it is UDP and below 1024, how can I comfirm it is closed?
linux networking firewall
add a comment |Â
up vote
2
down vote
favorite
Based on this answer closing port 67 UDP outgoing should be
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p udp -m udp --dport=67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j DROP
firewall-cmd --reload
Port 67 UDP is the port a DHCP server uses, so I would like to verify that the port is indeed closed before I start the dhcp server, so I can experiment with it in a sandbox.
Question
Since it is UDP and below 1024, how can I comfirm it is closed?
linux networking firewall
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Based on this answer closing port 67 UDP outgoing should be
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p udp -m udp --dport=67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j DROP
firewall-cmd --reload
Port 67 UDP is the port a DHCP server uses, so I would like to verify that the port is indeed closed before I start the dhcp server, so I can experiment with it in a sandbox.
Question
Since it is UDP and below 1024, how can I comfirm it is closed?
linux networking firewall
Based on this answer closing port 67 UDP outgoing should be
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p udp -m udp --dport=67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j DROP
firewall-cmd --reload
Port 67 UDP is the port a DHCP server uses, so I would like to verify that the port is indeed closed before I start the dhcp server, so I can experiment with it in a sandbox.
Question
Since it is UDP and below 1024, how can I comfirm it is closed?
linux networking firewall
linux networking firewall
asked 2 hours ago
Sandra
4,3433275137
4,3433275137
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
You can use a tool like netcat (on the server echo test | nc -u <other IP> 67
and on another machine nc -u -l -p 67
, or use Wireshark or similar) and see if the message pops up.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
Port 67 UDP is the port a DHCP server uses, so I would like to verify
that the port is indeed closed before I start the dhcp server, so I
can experiment with it in a sandbox.
A test DHCP server should be isolated in a VLAN or configured with split scopes that don't overlap existing DHCP ranges. If test and production are in the same broadcast domain, either may get the broadcast which may cause unexpected behavior. See: 2 DHCP servers on one network
Also, you can limit the interfaces dhcpd is listening on to this sandbox net. Without relay agents, it won't see DHCPDISCOVER messages on other nets.
add a comment |Â
up vote
0
down vote
I'm pretty sure you could use Nmap's UDP port scan to specify the protocol and port. The syntax is as follows:
$ sudo nmap -sU -p port target
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can use a tool like netcat (on the server echo test | nc -u <other IP> 67
and on another machine nc -u -l -p 67
, or use Wireshark or similar) and see if the message pops up.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
accepted
You can use a tool like netcat (on the server echo test | nc -u <other IP> 67
and on another machine nc -u -l -p 67
, or use Wireshark or similar) and see if the message pops up.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can use a tool like netcat (on the server echo test | nc -u <other IP> 67
and on another machine nc -u -l -p 67
, or use Wireshark or similar) and see if the message pops up.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You can use a tool like netcat (on the server echo test | nc -u <other IP> 67
and on another machine nc -u -l -p 67
, or use Wireshark or similar) and see if the message pops up.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago
user
361
361
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
up vote
1
down vote
Port 67 UDP is the port a DHCP server uses, so I would like to verify
that the port is indeed closed before I start the dhcp server, so I
can experiment with it in a sandbox.
A test DHCP server should be isolated in a VLAN or configured with split scopes that don't overlap existing DHCP ranges. If test and production are in the same broadcast domain, either may get the broadcast which may cause unexpected behavior. See: 2 DHCP servers on one network
Also, you can limit the interfaces dhcpd is listening on to this sandbox net. Without relay agents, it won't see DHCPDISCOVER messages on other nets.
add a comment |Â
up vote
1
down vote
Port 67 UDP is the port a DHCP server uses, so I would like to verify
that the port is indeed closed before I start the dhcp server, so I
can experiment with it in a sandbox.
A test DHCP server should be isolated in a VLAN or configured with split scopes that don't overlap existing DHCP ranges. If test and production are in the same broadcast domain, either may get the broadcast which may cause unexpected behavior. See: 2 DHCP servers on one network
Also, you can limit the interfaces dhcpd is listening on to this sandbox net. Without relay agents, it won't see DHCPDISCOVER messages on other nets.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Port 67 UDP is the port a DHCP server uses, so I would like to verify
that the port is indeed closed before I start the dhcp server, so I
can experiment with it in a sandbox.
A test DHCP server should be isolated in a VLAN or configured with split scopes that don't overlap existing DHCP ranges. If test and production are in the same broadcast domain, either may get the broadcast which may cause unexpected behavior. See: 2 DHCP servers on one network
Also, you can limit the interfaces dhcpd is listening on to this sandbox net. Without relay agents, it won't see DHCPDISCOVER messages on other nets.
Port 67 UDP is the port a DHCP server uses, so I would like to verify
that the port is indeed closed before I start the dhcp server, so I
can experiment with it in a sandbox.
A test DHCP server should be isolated in a VLAN or configured with split scopes that don't overlap existing DHCP ranges. If test and production are in the same broadcast domain, either may get the broadcast which may cause unexpected behavior. See: 2 DHCP servers on one network
Also, you can limit the interfaces dhcpd is listening on to this sandbox net. Without relay agents, it won't see DHCPDISCOVER messages on other nets.
answered 1 hour ago


John Mahowald
5,8921612
5,8921612
add a comment |Â
add a comment |Â
up vote
0
down vote
I'm pretty sure you could use Nmap's UDP port scan to specify the protocol and port. The syntax is as follows:
$ sudo nmap -sU -p port target
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
I'm pretty sure you could use Nmap's UDP port scan to specify the protocol and port. The syntax is as follows:
$ sudo nmap -sU -p port target
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I'm pretty sure you could use Nmap's UDP port scan to specify the protocol and port. The syntax is as follows:
$ sudo nmap -sU -p port target
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm pretty sure you could use Nmap's UDP port scan to specify the protocol and port. The syntax is as follows:
$ sudo nmap -sU -p port target
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago


OHackerDoAmor
11
11
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
OHackerDoAmor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f937838%2fhow-to-confirm-a-low-number-port-67-udp-is-closed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password