Author Topic: Gateway change Damage Firewall  (Read 1273 times)

JPB

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +1/-1
    • View Profile
Gateway change Damage Firewall
« on: August 25, 2010, 10:15:09 pm »
I run :
root@chaos:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.1 LTS
Release:        10.04
Codename:       lucid

Core version      1.5.13 - Zentyal

I have changed my gateway to 192.168.11.3 from 192.168.11.1 as I have 2x  DSL lines and routers - since then the firewall block me even from the dashboard and ssh login.  It seems that changing gateway under network still  has bugs.

 I did stop the iptables from the console to gain access by means of an  script i have  and then I can access it.  Even if I try and restore the gateway to
 192.168.11.1 - well its now all messed up!

Code: [Select]
root@chaos:~# cat /root/fw.stop
Code: [Select]
#!/bin/sh
 echo "Stopping firewall and allowing everyone..."
 iptables -F
 iptables -X
 iptables -t nat -F
 iptables -t nat -X
 iptables -t mangle -F
 iptables -t mangle -X
 iptables -P INPUT ACCEPT
 iptables -P FORWARD ACCEPT
 iptables -P OUTPUT ACCEPT
After clearing out the iptables I can acdess the server via ssh and via http but the problems still endure.  Is there any help to get this gateway set to the 192.168.11.3 and also get the Firewall to change accordingly.
I have also changed the dns ofc because the den is ISP specific.

Thanx

JPB
« Last Edit: August 25, 2010, 10:16:44 pm by JPB »