Old 12-22-2011, 08:47 AM   #1 (permalink)
Newbie
 
Join Date: Dec 2011
Posts: 1
chillamayo is on a distinguished road
Default Scripting / adding rules - ideally via BASH shell and SSH

I've been using Untangle for a couple of years and I've been very happy with it, but more recently I've wanted to do something and the way to do it isn't clear.

I'd like to be able to script a forwarding rule that computer A could place on the Untangle server.

I've already enabled SSH in Untangle, so computer A can log in. I'm familiar with writing normal iptables rules and could easily do this in a "normal" Linux firewall, but it's not clear exactly how (where) I could do this in Untangle.

I've seen the rules located in /etc/untangle-net-alpaca/iptables-rules.d/600-redirect but obviously these get overwritten by net alpaca.

Please don't say "use the GUI". That doesn't help with automation and doesn't address the problem.

Last edited by chillamayo; 12-22-2011 at 09:28 AM.. Reason: typo
chillamayo is offline  
Old 12-22-2011, 08:53 AM   #2 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,611
dmorris is on a distinguished road
Default

Settings like in /usr/share/untangle/settings/ in JSON
If you checkout the code you can find test python scripts that use the API to do various things like add rules etc.

iptables is used as an internal mechanism to untangle, not to implement the firewall or other features. I would not modify iptables untangle. If you're really dieing to use iptables you'd be better off just using debian or some other base OS because you can start with a clean slate and it won't interfere with the other stuff running on the server.

If you modify anything I would suggest disabling all automatic upgrades.

welcome to the forums!
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is offline  
Closed Thread

Tags
bash, scripting, shell

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:34 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2