Welcome, Guest. Please login or register.

Author Topic: openWRT issues  (Read 2182 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline pyrreTopic starter

openWRT issues
« on: February 26, 2010, 03:07:01 PM »
Hello,
Anyone of you guys using openwrt in any on your router?

I have problems setting up a proper port forward.

So far i have put
Code: [Select]
forward:dport=61020:192.168.1.208In the "/etc/firewall.user" file.
And it does not work...

Do any of you know where to put the commands and what commands to use?
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline ferix

  • Full Member
  • ***
  • Join Date: Aug 2009
  • Posts: 136
    • Show only replies by ferix
Re: openWRT issues
« Reply #1 on: February 26, 2010, 06:35:51 PM »
I'm at work now and I can't check It, but I think you have to add a line like this:

Code: [Select]
accept:proto=tcp dpport=61020
P.D.:
You have to accept the packets before forwarding them...

Edit:
I used an incorrect syntax, fixed now.
« Last Edit: February 26, 2010, 06:44:24 PM by ferix »
[Master of puppets I\'m pulling your strings  
Twisting your mind and smashing your dreams  
Blinded by me, you can\'t see a thing  
Just call my name, \'cause I\'ll hear you scream]
...
We are The Borg.
Lower your shields and surrender your ships.
We will add your biological and technological distinctiveness to our own.
Your culture will adapt to service us.
Resistance is Futile.

 

Offline pyrreTopic starter

Re: openWRT issues
« Reply #2 on: February 26, 2010, 09:03:14 PM »
Problem solved...
Although, some questions has riced...

But to solve it:
Code: [Select]
iptables -t nat -A prerouting_wan -p tcp --dport <your desired port> -j DNAT --to <the desired computers IP>:<what port to forward to>
iptables        -A forwarding_wan -p tcp --dport <your desired port> -d <the desired computers IP> -j ACCEPT

that did the trick...

But my question...
in this line i have put tcp... can i use : to add udp as well (tcp:udp) or do i need a second line for udp?

and

For a port range, like 14000 - 14050 do i put 14000:15050 in the line, do i have to put all 50 lines in the routing table or is there another way to set a portrange in the routing table?
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline ferix

  • Full Member
  • ***
  • Join Date: Aug 2009
  • Posts: 136
    • Show only replies by ferix
Re: openWRT issues
« Reply #3 on: February 26, 2010, 09:14:52 PM »
Quote from: pyrre;545288
[..]
But my question...
in this line i have put tcp... can i use : to add udp as well (tcp:udp) or do i need a second line for udp?

You have to put a second line for udp

Quote from: pyrre
For a port range, like 14000 - 14050 do i put 14000:15050 in the line, do i have to put all 50 lines in the routing table or is there another way to set a portrange in the routing table?

Yes, you can put 14000:15050... but, why don't you try? ;)
[Master of puppets I\'m pulling your strings  
Twisting your mind and smashing your dreams  
Blinded by me, you can\'t see a thing  
Just call my name, \'cause I\'ll hear you scream]
...
We are The Borg.
Lower your shields and surrender your ships.
We will add your biological and technological distinctiveness to our own.
Your culture will adapt to service us.
Resistance is Futile.

 

Offline pyrreTopic starter

Re: openWRT issues
« Reply #4 on: February 27, 2010, 12:09:27 AM »
Quote from: ferix;545289
You have to put a second line for udp



Yes, you can put 14000:15050... but, why don't you try? ;)

I have tried. but don't know if it works... :-)
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder