:: Re: [DNG] Which qemu version is shi…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mario Marietto
Fecha:  
A: wirelessduck
Cc: dng
Asunto: Re: [DNG] Which qemu version is shipped by default with devuan 3 ?
root@devuan:~# iptables-translate -t nat -A POSTROUTING -o eth0 -j
MASQUERADE
nft add rule ip nat POSTROUTING oifname "eth0" counter masquerade

root@devuan:~# ifconfig

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
       inet 127.0.0.1  netmask 255.0.0.0
       inet6 ::1  prefixlen 128  scopeid 0x10<host>
       loop  txqueuelen 1000  (Local Loopback)
       RX packets 28  bytes 3449 (3.3 KiB)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 28  bytes 3449 (3.3 KiB)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


mlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
       inet 192.168.1.6  netmask 255.255.255.0  broadcast 192.168.1.255
       inet6 fe80::47b1:6a1e:c9a8:5e73  prefixlen 64  scopeid 0x20<link>
       ether 50:22:c1:e9:44:63  txqueuelen 1000  (Ethernet)
       RX packets 656  bytes 59350 (57.9 KiB)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 351  bytes 35970 (35.1 KiB)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


root@devuan:~# nft add rule ip nat POSTROUTING oifname "mlan0" counter
masquerade

Error: Could not process rule: No such file or directory
add rule ip nat POSTROUTING oifname mlan0 counter masquerade
           ^^^




On Wed, Aug 16, 2023 at 1:03 PM wirelessduck--- via Dng <dng@???>
wrote:

>
>
> > On 16 Aug 2023, at 20:13, Mario Marietto <marietto2008@???> wrote:
> >
> > 
> > It's too much out of my knowledge. I'm not able to understand what's the
> correct syntax to use.
>
> The manpage for iptables-translate says it takes the same arguments as
> iptables. You can try:
>
> iptables-translate -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> and that should output the equivalent nftables command. I don’t have a
> terminal here to try that myself right now.
>
> Tom
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>



--
Mario.