Navigation
« 

Anonymous




Register
Login
« 
« 

Amiga Future

« 

Community

« 

Knowledge

« 

Last Magazine

The Amiga Future 167 was released on the March 5th.

The Amiga Future 167 was released on the March 5th.
The Amiga Future 167 was released on the March 5th.

The Amiga Future 167 was released on the March 5th.
More informations

« 

Service

« 

Search




Advanced search

Unanswered topics
Active topics
« 

Social Media

Twitter Amigafuture Facebook Amigafuture RSS-Feed [german] Amigafuture RSS-Feed [english] Instagram YouTube Patreon
« 

Advertisement

Amazon

Patreon

« 

Partnerlinks

Aros LInux hosted

Amiga und Kompatible: AmigaOS, MorphOS, AROS.

Moderator: AndreasM

ipp0
Amiga Future Fan
Amiga Future Fan
Posts: 63
Joined: 26.11.2005 - 22:21
Contact:

Post by ipp0 »

Vielen Dank für die Hilfe.

Deine bash-scripte funktioniern, allerdings nur als root. Als usr gibt's syntax-errors in der /etc/sudoers:

hier

Code: Select all

# User privilege specification
root	ALL=(ALL) ALL
und hier

Code: Select all

%users ALL=/sbin/iptables
Ersteres war von Grund auf so eingestellt, den 2ten Eintrag habe ich selbst vorgenommen, damit ich nicht immer root-Rechte brauche.
Egal. Stelle ich alles genau so ein wie du beschrieben hast, wird das tap device erstellt, und attached. Dennoch bekomme ich keine Verbindung.
Mein Startscript legt auch alles ordentlich an und es wird ebenso von Aros erkannt.

An Konfigurationsmöglichkeiten habe ich jezt so ziehmlich alle statistischen Möglichkeiten durch :)

Eine Möglichkeit hätte ich noch:
Wenn ich dein script nutze und dann Aros als user starte, bekomme ich die Fehlermeldung:

Code: Select all

[tap] couldn't perform TUNSETIFF on TAP device (1)
Daher frage ich mich, ob man die Rechte des tap-device genau so änderen könnte, wie ich das mit dem tun-device mache. Es ist allerdings nicht in /dev enthalten. Scheint ein kernel-Ding zu sein.

Gruß
kudlaty
AFF Profi
AFF Profi
Posts: 429
Joined: 16.08.2005 - 11:29
Location: /dev/tty

Post by kudlaty »

ipp0 wrote:Deine bash-scripte funktioniern, allerdings nur als root.
Als root? Verwegen. ;)
Als usr gibt's syntax-errors in der /etc/sudoers:

hier

Code: Select all

# User privilege specification
root	ALL=(ALL) ALL
und hier

Code: Select all

%users ALL=/sbin/iptables
Ersteres war von Grund auf so eingestellt, den 2ten Eintrag habe ich selbst vorgenommen, damit ich nicht immer root-Rechte brauche.
Logo, sonst machen die sudo-Zeilen im Skript ja wenig Sinn. Nur iptables freizugeben dürfte aber kaum reichen, ich habe mir noch tunctl, ifconfig und sysctl (der Bequemlichkeit halber mit NOPASSWD) zugänglich gemacht, allerdings wirklich nur für meinen Usernamen. Freigabe für andere würde ich mir gut überlegen, da ließe sich doch arg Unfug treiben. ;)

Klappt mit der vorher beschriebenen Konfiguration einwandfrei. Wenn es bei Dir weiterhin hakt, kann ich vermutlich nicht mehr weiterhelfen, dann klemmt es wohl distributionsspezifisch.
ipp0
Amiga Future Fan
Amiga Future Fan
Posts: 63
Joined: 26.11.2005 - 22:21
Contact:

Post by ipp0 »

Tjoa. Ich hatte auch alles, was in dem script auszuführen ist, in die sudoers eingetragen. NOPASSWORD: oder für alle.

Code: Select all

# User privilege specification
root	ALL=(ALL) ALL
ipp0    ALL=(ALL) NOPASSWD: ALL'

# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL) ALL
%ipp0	ALL=(ALL) ALL

# Same thing without a password
# %wheel	ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
%users ALL=NOPASSWD:/bin/mount -t udf\,iso9660 -o loop\,ro\,nodev\,noexec\,nosuid\,* */Mount-ISO*,/bin/umount */Mount-ISO*
%users ALL=/sbin/ifconfig
%users ALL=/usr/bin/tunctl
%users ALL=/sbin/iptables
%users ALL=/sbin/sysctl
Komme auch irgendwie nicht mehr weiter. Jedenfalls danke für die Hilfe.
kudlaty
AFF Profi
AFF Profi
Posts: 429
Joined: 16.08.2005 - 11:29
Location: /dev/tty

Post by kudlaty »

Ist das mit dem Apostroph am Ende ein Fehler, der sich hier reingeschlichen hat?
ipp0 ALL=(ALL) NOPASSWD: ALL'
Welche Distribution hast Du eigentlich?

Hier mal die Konsolenausgabe nach Skriptstart, vielleicht hilft ein Vergleich ja weiter:

Code: Select all

net.ipv4.ip_forward = 1
[Bootstrap] entering kernel@0xf73ba000...
[Kernel] preparing first mem header
RomTagScanner: Start = 0xf73ba000, End = 0xf74a3fa6
Resident modules (addr: pri version name):
+ 0xf73da640: 127   3 "kernel.resource"
+ 0xf73dade0: 125   2 "hostlib.resource"
+ 0xf73db8c0: 120  41 "exec.library"
+ 0xf73ddfc0: 104  41 "expansion.library"
+ 0xf7487060: 103  41 "utility.library"
+ 0xf7481c60: 102  41 "aros.library"
+ 0xf73ec8a0: 100  41 "bootloader.resource"
+ 0xf73daec0:  99   2 "processor.resource"
+ 0xf7486dc0:  94  42 "oop.library"
+ 0xf7488460:  92   1 "hiddclass.hidd"
+ 0xf73daca0:  70  41 "battclock.resource"
+ 0xf7488680:  66   1 "graphics.hidd"
+ 0xf7483640:  65  41 "graphics.library"
+ 0xf7486960:  60  41 "layers.library"
+ 0xf73ef8e0:  50  41 "timer.device"
+ 0xf74895e0:  45   1 "keyboard.hidd"
+ 0xf74897a0:  45   1 "mouse.hidd"
+ 0xf7488180:  44  41 "gameport.device"
+ 0xf7488300:  44  41 "keyboard.device"
+ 0xf74862e0:  40  41 "keymap.library"
+ 0xf7487f40:  30  41 "input.device"
+ 0xf7484ea0:  15  50 "intuition.library"
+ 0xf73de780:   9  42 "x11gfx.hidd"
+ 0xf74872a0:   4  41 "console.device"
+ 0xf73de320:   0  42 "emul.handler"
+ 0xf7481da0: -50  41 "Boot Strap"
+ 0xf7481e20: -120  41 "dos.library"
+ 0xf7482860: -123  41 "LDDemon"
+ 0xf7480e00: -124  41 "con.handler"
+ 0xf74819a0: -124   1 "packet.handler"
+ 0xf7480d40: -125   1 "amberram.handler"
+ 0xf7481800: -125  41 "nil.handler"
+ 0xf73ec9a0: -128  41 "dosboot.resource"
[Kernel] calling InitCode(RTF_SINGLETASK,0)

DisplayPlanes        = 24
DefaultDepth         = 24


 BITS PER PIXEL = 24 


[DOS] DosInit: InitCode(RTF_AFTERDOS)
[DOSBoot] __dosboot_BootProcess: Booting from device 'EMU:'
GetLangStr: Loaded at address d766a720
[tap] unit 0 attached to aros0
[tap] [0] hardware address: 2e:2e:22:89:d7:0a
Wenn Du es mal mit der exakt gleichen AROS-Version probieren möchtest, kannst Du sie hier herunterladen:
http://dl.dropbox.com/u/5090693/aros-ho ... 218.tar.gz

Ansonsten weiß ich leider auch nicht mehr weiter.
ipp0
Amiga Future Fan
Amiga Future Fan
Posts: 63
Joined: 26.11.2005 - 22:21
Contact:

Post by ipp0 »

So. Frohes Neues und danke für das Archiv. Meine Distro ist Mandriva 2009.0 (weil es die Letze ist, wo KDE3 & 4 miteinander harmonieren).

Das Apostroph habe ich beseitigt. Da hatte sich wohl ein Fehler eingeschlichen. Ich hatte bis zu diesem Versuch allerdings noch nichts darin ediert :)

Hier mal meine terminal-Ausgaben:

Erstellen des device:

Code: Select all

# ./aros0
aros0
ifconfig zeigt mir danach:

Code: Select all

aros0     Link encap:Ethernet  Hardware Adresse 76:A6:5C:AE:F5:39
          inet Adresse:192.168.0.20  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6 Adresse: fe80::74a6:5cff:feae:f539/64 Gültigkeitsbereich:Verbindung
Dann Aros:

Code: Select all

$ ./AROSBootstrap
[Bootstrap] entering kernel@0xb7471000...
[Kernel] preparing first mem header
RomTagScanner: Start = 0xb7471000, End = 0xb755598f
Resident modules (addr: pri version name):
+ 0xb748fa80: 127   3 "kernel.resource"
+ 0xb74901c0: 125   2 "hostlib.resource"
+ 0xb7490c40: 105  41 "exec.library"
+ 0xb74932c0: 104  41 "expansion.library"
+ 0xb7538a20: 103  41 "utility.library"
+ 0xb7533260: 102  41 "aros.library"
+ 0xb74a1ae0: 100  41 "bootloader.resource"
+ 0xb74902a0:  99   2 "processor.resource"
+ 0xb7538760:  94  42 "oop.library"
+ 0xb7539da0:  92   1 "hiddclass.hidd"
+ 0xb7539fc0:  66   1 "graphics.hidd"
+ 0xb7534fe0:  65  41 "graphics.library"
+ 0xb7538300:  60  41 "layers.library"
+ 0xb74a4b00:  50  41 "timer.device"
+ 0xb7490080:  45  41 "battclock.resource"
+ 0xb753af20:  45   1 "keyboard.hidd"
+ 0xb753b0e0:  45   1 "mouse.hidd"
+ 0xb7539ac0:  44  41 "gameport.device"
+ 0xb7539c40:  44  41 "keyboard.device"
+ 0xb7537c80:  40  41 "keymap.library"
+ 0xb7539880:  30  41 "input.device"
+ 0xb7536820:  15  50 "intuition.library"
+ 0xb7493a80:   9  42 "x11gfx.hidd"
+ 0xb7538c60:   4  41 "console.device"
+ 0xb7493620:   0  42 "emul.handler"
+ 0xb75333a0: -50  41 "Boot Strap"
+ 0xb7533440: -120  41 "dos.library"
+ 0xb7534200: -123  41 "LDDemon"
+ 0xb75324c0: -124  41 "con.handler"
+ 0xb7532fa0: -124   1 "packet.handler"
+ 0xb7532400: -125   1 "amberram.handler"
+ 0xb7532e00: -125  41 "nil.handler"
+ 0xb74a1be0: -128  41 "dosboot.resource"
[Kernel] calling InitCode(RTF_SINGLETASK,0)

DisplayPlanes        = 24
DefaultDepth         = 24


 BITS PER PIXEL = 24


[DOS] DosInit: InitCode(RTF_AFTERDOS)
[DOSBoot] __dosboot_BootProcess: Booting from device 'EMU:'
GetLangStr: Loaded at address b3671e60
[tap] unit 0 attached to aros0
[tap] [0] hardware address: 2e:2e:22:89:d7:0a
[WBLIB] j_uae_running: J-UAE port "J-UAE Execute" *not* found
Als TAP-script habe ich

Code: Select all

#! /bin/bash

modprobe tun
tunctl -b -u ipp0 -t aros0
ifconfig aros0 192.168.0.20
ifconfig aros0 up
chmod 666 /dev/net/tun
route add -host 192.168.0.188 dev aros0
benutzt. Mit deinem sieht es genau so aus, funzt aber auch nicht. Bei den IP's habe ich natürlich auch verschiedene Variationen getestet.

Ich weiß auch nicht mehr weiter. :)

Gruß

ipp0
Post Reply