Community


All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: NR Pro 2.2.0 - Iptables issue
PostPosted: Tue Oct 14, 2014 6:35 am 
Offline

Joined: Fri Sep 13, 2013 8:23 am
Posts: 8
Hi!

I'm having some trobule with iptables.

1. Ubuntu 12.04.2 LTS box, default install, no iptables.
2. Setting up network.
3. Installing latest (2.2.0 pro) nrclient.
4. reboot.
All is well, working just fine.
5. Adding iptables-rules. This setup is a bit special, because this is connected via GPRS, I need to limit outgoing traffic.
So INPUT:ACCEPT, FORWARD:ACCEPT, OUTPUT:DROP
Adding rules to allow output of the following:
IP of nr server, DNS lookup, everything through nrtap.
6. starting nrservice.
All is well working just fine.
7. Reboot...
8. nrservice NOT starting.
9. Firewall activated as expected.
10. starting nrservice
Working Fine.
11. Removing iptables-rules.
12. Reboot.
13. Nrservice still NOT starting....

I've gooogled a whole lot for this, but I don't find anything that suggests why.
Even after I've removed the firewall, it still won't start.

Point 1. is starting from an Ubuntu image, to make sure I start from the same point, works fin - firewall - no starting at boot...


Top
 Profile  
 
 Post subject: Re: NR Pro 2.2.0 - Iptables issue
PostPosted: Tue Oct 14, 2014 10:06 am 
Offline

Joined: Fri Sep 13, 2013 8:23 am
Posts: 8
For those who might have the same type of issue, i worked out a solution.
I incorportated both iptables and NeoRouter in NetworkManager.

There is a folder (/etc/NetworkManager/dispatcher.d ) that's used for custom scripts in NM. It seems like neorouter needs to be started after iptables, so i made the following scripts:

02firewall - The iptables script.
and
03neorouter - A slightly modified init script for NR.

If you configure this right, you can do whatever you want with interfaces, and both NR and iptables will do just fine!
All works great!


Top
 Profile  
 
 Post subject: Re: NR Pro 2.2.0 - Iptables issue
PostPosted: Tue Oct 14, 2014 10:08 am 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1869
Hi kaa4re,

Can you send us the log file of nrservice so that we can help you to investigate it?

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to: