|
Bugzilla – Full Text Bug Listing |
| Summary: | yast2-modem breaks SuSE firewall2 | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Hartmut Buhrmester <hartmut.buhrmester> |
| Component: | YaST2 | Assignee: | Martin Vidner <mvidner> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Critical | ||
| Priority: | P5 - None | ||
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | SuSE Linux 10.0 | ||
| Whiteboard: | |||
| Found By: | Customer | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
Configuration file /etc/sysconfig/SuSEfirewall2 after running kppp
Location of the setting "External Firewall" which was mentioned in the first report Log file /var/run/YaST/y2log after adding a new provider to YaST |
||
|
Description
Hartmut Buhrmester
2006-01-27 20:46:25 UTC
Created attachment 65523 [details]
Configuration file /etc/sysconfig/SuSEfirewall2 after running kppp
where would that option to "define this interface" be? I couldn't find this text in kppp source code at least Sorry, then I was wrong and confused kppp with the YaST modem module, which has similar options. The YaST module "Netzwerkgeräte --> Modem" has the mentioned setting. When entering a new provider, the page "Verbindungsparameter" has the option "Externe Firewall-Schnittstelle". (See the attached screen shot Bildschirmphoto1.png) The option is on, if modem0 is already defined as the external interface, e.g. in the configuration file /etc/sysconfig/SuSEfirewall2 there is a line: FW_DEV_EXT="modem0" The option is off, if modem0 is not yet defined as the external interface, e.g. FW_DEV_EXT="any" Setting the option to "on" will seriously damage the sysconfig file: The top of the file will be deleted, up to and including the line FW_DEV_EXT="any". Then this definition is actually missing from the file. The YaST module "Sicherheit und Benutzer --> Firewall" may add the definition again, but then it will be appended to the end of the file. This state is shown in the file I attached to my initial report. Created attachment 65541 [details]
Location of the setting "External Firewall" which was mentioned in the first report
please attach /var/log/YaST/y2log after trying changing it in YaST again Okay, now I did the following: 1) Edited the file /etc/sysconfig/SuSEfirewall2 directly with vi and changed FW_DEV_EXT="modem0" to FW_DEV_EXT="any". This is the starting condition. 2) Archived the existing log file y2log as y2log.backup, since it was already pretty long. 3) Started YaST, opened the module "Netzwerkgeräte --> Modem" and entered a new provider "Freenet IbC". On the second page "Verbindungsparameter" the option "Externe Firewall-Schnittstelle" is "off". I toggled this option to "on" by marking it with the mouse. 4) The next page will be a summary "Überblick über die Modemkonfiguration". I just quit this module and the new modem configuration will be saved. Then there is a dialog "Mail nun konfigurieren?" but I just dismiss this question by clicking on "Nein". 5) Next I open the module "Sicherheit und Benutzer --> Firewall". The second option on the left panel is "Schnittstellen", so I go to that page. The modem is listed as: Gerät: U.S. Robotics 56K FAX EXT Schnittstelle oder String: modem0 Konfiguriert in: Keine Zone zugewiesen The only other interface is: Gerät: D-Link RTL-8029(AS) Schnittstelle oder String: eth-id-00:50:ba:34:8b:cf Konfiguriert in: Interne Zone Note that there is no "Externe Zone" at all. 6) I changed the definition for modem0 and assigned it to the "Externe Schnittstelle". 7) Clicking on "Weiter" brings up a summary page. Then I quit this module and also the YaST-Kontrollzentrum. 8) Copied /var/run/YaST/y2log to my home directory and sent is as an attachment. Created attachment 65562 [details]
Log file /var/run/YaST/y2log after adding a new provider to YaST
Hartmut: Where do you suppose lies the cause of this problem? Firewall itself or YaST, or kppp? I think it is the YaST2 module "Netzwerkgeräte --> Modem". It does not read/write the file /etc/sysconfig/SuSEfirewall2 correctly. If the option "Externe Schnittstelle" in that module is toggled on, the top of the sysconfig file will be deleted. If the option is already on, the file will not be changed. The firewall just interpretes the configuration file /etc/sysconfig/SuSEfirewall2. The YaST module "Sicherheit --> Firewall" also seems to work fine. Initially, I suspected kppp, because I tried it recently with other desktops, and found later that the firewall did not work as usual (routing did not work anymore). But that was just coincidence, and kppp is not involved at all. Reassignint to the maintainer. The problem appears when you enter the modem module and go to edit a provider without editing a modem first. Then the Firewall checkbox does not make sense (because it applies to a modem device, not a provider) and that confuses the firewall code to the point of removing the initial portion of the file. I have hidden the firewall checkbox when it does not make sense. Fixed in yast2-network-2.13.21. |