Toon posts:

UDP port accepten

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik draai een firewall van adsl4linux.nl maar dan een beetje aangepast ...heel veel aangepast >:)

Nu wil ik en aantal UDP porten accepten :
code:
1
2
$path_ipchains -A input -p udp -i $ext_if -s any/0 -d $ext_ip --dport 2048 -j ACCEPT
$path_ipchains -A output -p tcp -i $ext_if -s $ext_ip --sport 2048 -d any/0 ! -y -j ACCEPT

Maar ik krijg de volgende melding :
code:
1
2
3
4
5
6
7
8
/sbin/ipchains: -y only allowed with TCP protocol
Try `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information.
/sbin/ipchains: -y only allowed with TCP protocol
Try `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information.
/sbin/ipchains: -y only allowed with TCP protocol
Try `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information.
/sbin/ipchains: -y only allowed with TCP protocol
Try `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information.

Iemand die hier iets op weet ?? Uit de help kom ik niet veel verder.

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 14-08 23:03

Creepy

Tactical Espionage Splatterer

Op maandag 04 februari 2002 11:52 schreef Magio het volgende:
Nu wil ik en aantal UDP porten accepten :
code:
1
2
$path_ipchains -A input -p udp -i $ext_if -s any/0 -d $ext_ip --dport 2048 -j ACCEPT
$path_ipchains -A output -p tcp -i $ext_if -s $ext_ip --sport 2048 -d any/0 ! -y -j ACCEPT

Maar ik krijg de volgende melding :
/sbin/ipchains: -y only allowed with TCP protocol
Try `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information.
Iemand die hier iets op weet ?? Uit de help kom ik niet veel verder.
Je ZOU de -y uit je regel kunnen halen en kijken of het werkt he.

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


  • igmar
  • Registratie: April 2000
  • Laatst online: 29-06 18:56

igmar

ISO20022

Op maandag 04 februari 2002 11:52 schreef Magio het volgende:
Ik draai een firewall van adsl4linux.nl maar dan een beetje aangepast ...heel veel aangepast >:)

Iemand die hier iets op weet ?? Uit de help kom ik niet veel verder.
Nog een keer lezen misschien ?? Quote uit de manual :
This option is only meaningfull when the protocol type is set to TCP.
Erg logisch, aangezien UDP stateless is en dus geen SYN kent.