Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modprobe ip_tables enable share folder with windows, but meet system error 104: Connection reset by peer problem #394

Open
Kelatte opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working windows Has to do with the guest OS

Comments

@Kelatte
Copy link

Kelatte commented Jan 22, 2025

i run podman-compose --file ~/.config/winapps/compose.yaml up and meet the ip_tables problem. in windows, the tsclient is empty.

[windows] | iptables v1.8.11 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
[windows] | Perhaps iptables or your kernel needs to be upgraded.
[windows] | ❯ ERROR: The 'ip_tables' kernel module is not loaded. Try this command: sudo modprobe ip_tables iptable_nat
[windows] | ❯ Warning: falling back to usermode networking! Performance will be bad and port mapping will not work.

i follow the instruction 'sudo modprobe ip_tables iptable_nat'. in VNC, i find that the mount works. but using xfreerdp failed:

xfreerdp /v:127.0.0.1 /u:docker /p:                                                                                                       
[17:17:34:498] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]: *************************************************
[17:17:34:498] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]: This build is using [runtime-check] build options:
[17:17:34:498] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]: * 'WITH_VERBOSE_WINPR_ASSERT=ON'
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]:
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]: [runtime-check] build options might slow down the application
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5642534e4bf0]: *************************************************
[17:17:34:499] [8459:0000210b] [ERROR][com.winpr.crypto.hash] - [winpr_Digest_Init_Internal]: Failed to initialize digest md4
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_hash][0x5642534e4bf0]: *************************************************
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_hash][0x5642534e4bf0]: [SSL] {Digest} build or configuration missing:
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_hash][0x5642534e4bf0]:  * md4: NTLM support not available
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_hash][0x5642534e4bf0]: *************************************************
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_cipher][0x5642534e4bf0]: *************************************************
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_cipher][0x5642534e4bf0]: [SSL] {Cipher} build or configuration missing:
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_cipher][0x5642534e4bf0]: * rc4: assistance files with encrypted passwords, NTLM, RDP licensing and RDP security will not work
[17:17:34:499] [8459:0000210b] [WARN][com.freerdp.core.rdp] - [log_build_warn_cipher][0x5642534e4bf0]: *************************************************
[17:17:35:825] [8459:0000210c] [ERROR][com.freerdp.codec] - [openh264_init]: Failed to create OpenH264 decoder
[17:17:35:825] [8459:0000210c] [WARN][com.freerdp.core.codecs] - [freerdp_client_codecs_prepare]: Failed to create h264 codec context
[17:17:35:020] [8459:0000210c] [ERROR][com.freerdp.core.transport] - [transport_read_layer]: BIO_read returned a system error 104: Connection reset by peer
[17:17:35:020] [8459:0000210c] [ERROR][com.freerdp.core] - [transport_read_layer]: ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[17:17:35:026] [8459:0000210c] [ERROR][com.freerdp.codec] - [openh264_init]: Failed to create OpenH264 decoder
[17:17:35:026] [8459:0000210c] [WARN][com.freerdp.core.codecs] - [freerdp_client_codecs_prepare]: Failed to create h264 codec context
[17:17:35:221] [8459:0000210c] [ERROR][com.freerdp.core.transport] - [transport_read_layer]: BIO_read returned a system error 104: Connection reset by peer
[17:17:35:221] [8459:0000210c] [ERROR][com.freerdp.core] - [transport_read_layer]: ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[17:17:35:221] [8459:0000210c] [ERROR][com.freerdp.core] - [freerdp_connect]: freerdp_post_connect failed

here is my lsmod before modprobe ip_tables:

lsmod | grep -E 'nat|ip_'                   

nft_nat                12288  3
nft_chain_nat          12288  6
nf_nat                 65536  3 nft_nat,nft_masq,nft_chain_nat
nf_conntrack          192512  6 nf_nat,nft_ct,nft_nat,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nft_masq
ip_set                 69632  0
nf_tables             413696  423 nft_ct,nft_nat,nft_reject_inet,nft_fib_ipv6,nft_fib_ipv4,nft_masq,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
nfnetlink              24576  4 nf_tables,ip_set

system info:
fedora silberblue 41
6.12.8-200.fc41.x86_64
winapps latest branch.

Any help is appreciated !

@oskardotglobal oskardotglobal added bug Something isn't working windows Has to do with the guest OS labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Has to do with the guest OS
Projects
None yet
Development

No branches or pull requests

2 participants