Open Ports iptables

How can I open UDP ports no 517 and 518 using iptables. I would like to use the “talk” service, and unless I open them, I can’t.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yast: Security: Firewall (I think) or the exact command:

sudo /sbin/yast firewall

When in there go to Allowed Services, Advanced, and enter these UDP
ports (space-delimited) in the UDP line.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO3MUtAAoJEF+XTK08PnB59hkP/2pVf4maochV5he95JbZOYdn
Wno/PaeS+VJwXviskMsaLyu+xHztEzK8uiF3M2Q0piHLubAz7l/saJx0jlZV+FC8
k3iYtN+oTgMqWTj7U9XIrH7bDLiwTK9vmPDll5wiMXACLwlxHPVglc9naMIEkFfb
upzSEsW0qz8ZeiE1ZjTzzZx9QFkW6jSRyQ9CA6GhyWd1srvw7gRxfS+6VGe6DQJ8
tlAkjARYAP/eSOuqXQkCdIcHQIWje0ydAjeYNkUj5BppusEpRP0F/OlYRXni2uPg
9URbx4VJpQkscVpK0TF7gT2OE2Bg9vGXlEG12FftE0zngMHLQqJny/958vgZ3kI3
Hv7di9cfxBxJh7xlrKvR8PrvE7dD4RHVuPilSEYO3spBCfLFQo92BcW5SWHVheds
8sE7xb+V+v2dYBwH/oVL0IX3pqW4Tak0a9AVllV5vsk6pqJfxZdfJEmy0dVBCMex
5J+/kdQlrblVQ3EnWRK6VBLQJvnmudAyJm+AClO6E8g+rE9InQYLogCjaok6JjVL
tUjHw+AsU47YTBnA2+2pD92PCgIc9BV3VtwTmqdgWY0jVpMtjMo4vX9VFFPjUR17
s2B0oekZcKhTeucmy4xXdzsIooihCkumSlOdmDSzMw30zetNFIrztxK+22VkPzIo
JhUQ9yJVwbDhyLNIsUWV
=ob9R
-----END PGP SIGNATURE-----

Thank you. I guess the iptables procedure would have been much more complicated :slight_smile:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Likely would have been. Since you posted what you really wanted (open
ports for something) I ignored your original request. If you are
interested in the actual iptables commands (which I think are great to
know) run the following command before/after using Yast to see the
difference:

sudo /usr/sbin/iptables-save

Redirect the output to a couple of files (one before, one after) and
compare. The lines in the iptables-save output are some you can pass
directly to iptables (in order… order really mattres) to do certain
things. Should be pretty clear to see the two (guessing) additional
lines for your two ports.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO3P0sAAoJEF+XTK08PnB5Dr4QAM6NAEsA09/v7XRe3tRJXMzs
UZFfW/IPPmaQESZ8tctKCsrmeQRHWKZ8eSy2WFw0HhpsVJzS3ZVZrRlM8/TmGysR
3Pr83rgt76H+tT1M7yJTy+kpVqN3oK8U2KN/TjRnKRSQflZNI5fB7grBqmnyVqLI
7rZAcvbRwuDzcQKWrZWj6EtjP6B4SIe/8WRZKE/YdMXi7wbTv+SHH4oFNme4Tvis
Tipu79zFhe0Yn54iALWtO7sZyMravQZTbOqLj1dEgV1UReAhpHUIVKef9IRYw1Zw
FtQZ5Kw360o2KmVYOUoqp4br87fsVOQHTK8FhPQyIK+XX9fgGRNxqIEXpPh7QdNr
z7teYNWOvW1nHv6OLeYysfMJqtfVEaAImYWWKhbXzwk2vGbA+4qtdsSV3GG0Bsxj
TPNQvs7l1RNnUhRFD6T4xyVjvJYuiJwg9jYR4FjX6DntlnUebc0837llBjkGFuY0
mwzUjISPN3h1QgMlQmwfb2AlWh25DdqifbIRXS4PlutxH5TD3xnBTisva+umdWgR
hMBrBj1vvrvVAbu0h7tgkk0FpqAwUrdzRhUVQ5fOeugsiOwPMV/xFPvMVdPR0HH1
kvm8iKMtanwqDYrlByv2piGbE6htPfYC0X2aqnr46xy0BgCkwb+VXYaD8aAkwhPL
HhlHpfsqbiwH4+KSLXQh
=dPb6
-----END PGP SIGNATURE-----

So I’ve got it working…although only on my machine for the moment. Talk is an excellent program, and I will definitely use it to talk with my friends (one by one :slight_smile: ).