amiga.org
     
iconAll times are GMT -6. The time now is 02:25 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » The "Not Quite Amiga but still computer related category" » Alternative Operating Systems » openWRT issues

Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others.

Reply
 
Thread Tools Display Modes
Old 02-26-2010, 08:07 AM   #1
pyrre
Cult Member
Points: 7,818, Level: 59 Points: 7,818, Level: 59 Points: 7,818, Level: 59
Activity: 4% Activity: 4% Activity: 4%
 
Join Date: Apr 2007
Location: Norway
Posts: 783
Default openWRT issues

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:
forward:dport=61020:192.168.1.208
In 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
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC
Amiga 2000
fusion forty 040, 2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+
Derringer 030, 32MBram, Trumpcard.
pyrre is offline   Reply With Quote
Old 02-26-2010, 11:35 AM   #2
ferix
Too much caffeine
Points: 2,961, Level: 33 Points: 2,961, Level: 33 Points: 2,961, Level: 33
Activity: 2% Activity: 2% Activity: 2%
 
ferix's Avatar
 
Join Date: Aug 2009
Location: At a country that “smelled garlic”
Posts: 136
Send a message via MSN to ferix
Default Re: openWRT issues

I'm at work now and I can't check It, but I think you have to add a line like this:

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

Edit:
I used an incorrect syntax, fixed now.
__________________
[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.


Last edited by ferix; 02-26-2010 at 11:44 AM..
ferix is offline   Reply With Quote
Old 02-26-2010, 02:03 PM   #3
pyrre
Cult Member
Points: 7,818, Level: 59 Points: 7,818, Level: 59 Points: 7,818, Level: 59
Activity: 4% Activity: 4% Activity: 4%
 
Join Date: Apr 2007
Location: Norway
Posts: 783
Default Re: openWRT issues

Problem solved...
Although, some questions has riced...

But to solve it:
Code:
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
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC
Amiga 2000
fusion forty 040, 2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+
Derringer 030, 32MBram, Trumpcard.
pyrre is offline   Reply With Quote
Old 02-26-2010, 02:14 PM   #4
ferix
Too much caffeine
Points: 2,961, Level: 33 Points: 2,961, Level: 33 Points: 2,961, Level: 33
Activity: 2% Activity: 2% Activity: 2%
 
ferix's Avatar
 
Join Date: Aug 2009
Location: At a country that “smelled garlic”
Posts: 136
Send a message via MSN to ferix
Default Re: openWRT issues

Quote:
Originally Posted by pyrre View Post
[..]
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:
Originally Posted by 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.

ferix is offline   Reply With Quote
Old 02-26-2010, 05:09 PM   #5
pyrre
Cult Member
Points: 7,818, Level: 59 Points: 7,818, Level: 59 Points: 7,818, Level: 59
Activity: 4% Activity: 4% Activity: 4%
 
Join Date: Apr 2007
Location: Norway
Posts: 783
Default Re: openWRT issues

Quote:
Originally Posted by ferix View Post
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
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC
Amiga 2000
fusion forty 040, 2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+
Derringer 030, 32MBram, Trumpcard.
pyrre is offline   Reply With Quote
Reply

Bookmarks

Tags
openwrt , issues

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump