ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Add a port forward without reboot

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> Running the mesh
View previous topic :: View next topic  
Author Message
Ads






Posted: Sat Sep 23, 2017 11:46 am    Post subject: Ads

Back to top
robgmann
Ultimate User
Ultimate User


Joined: 06 May 2009
Posts: 512
Location: Monterey, California USA

PostPosted: Wed Oct 05, 2011 7:53 am    Post subject: Add a port forward without reboot Reply with quote

Port forwarding on a ROBIN gateway is very helpful (say, to remotely manage a subscriber CPE, for example). There are some limitations in how it's implemented in the ROBIN code, though.
1) only 3 TCP forwards and 3 UDP forwards are allowed. This is not only built in the local web interface, but also is hardcoded in ROBIN.
2) Setting a port forward causes the node to reboot. This is problematic for many reasons - in this managed CPE scenario, because you may be trying to check and see why some customer is experiencing a problem. Rebooting their gateway is not a great way to start troubleshooting.

Workaround to these limitations is to ssh into the node and setup a forward manually and on-the-fly:
Edit the file /etc/config/forwarder and set the values under one of the config 'rule' sections:
Code:

config 'forwarder' 'rule_2'
   option 'IncomingPort' '443'
   option 'IPAddr' '101.163.130.5'
   option 'DstPort' '443'


This could also be done with uci commands:
Code:

uci set forwarder.rule_2.IncomingPort=443
uci set forwarder.rule_2.IPAddr=101.163.130.5
uci set forwarder.rule_2.DstPort=443
uci commit forwarder


Finally, you just need to restart iprules to put the changes into effect:
Code:
root@gateway:~#/etc/init.d/iprules
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> Running the mesh All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 0.135