Hi Laci,
Thanks for your comments and help.
Bellow the details of my problem!
Any help is very appreciated.
So I want to read from the interface:
20: INTRA-CH@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 08:00:27:79:1c:f5 brd ff:ff:ff:ff:ff:ff
inet
127.10.10.1/22 brd 127.1.3.255 scope host INTRA-CH
valid_lft forever preferred_lft forever
I want to write to the interface:
30: EXT@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9216 qdisc noqueue master MGMT state UP group default qlen 1000
link/ether 1a:07:cf:e2:28:ca brd ff:ff:ff:ff:ff:ff
inet
192.168.1.132/24 brd 192.168.1.255 scope global
EXT
valid_lft forever preferred_lft forever
inet6 fe80::8bd5:aa6a:9510:7418/64 scope link stable-privacy
valid_lft forever preferred_lft forever
syslog-ng in running as a service in Debian10.
Configurations of syslog-ng for the source are:
source s_src {
system();
internal();
syslog(ip(127.1.1.1) transport("udp") port(514) keep-alive(no));
};
Configurations of
syslog-ng for the destination are:
destination d_test1_udp {
syslog("192.168.1.88" transport("udp") ip-protocol(4) port(514) keep-alive(no) localip("192.168.1.132")
suppress(5)
);
};
filter f_remote_test1_udp_authpriv {
facility(authpriv) and level(debug .. emerg);
};
filter f_remote_test1_udp_local1 {
facility(local1) and level(debug .. emerg);
};
filter f_remote_test1_udp_local2 {
facility(local2) and level(debug .. emerg);
};
filter f_remote_test1_udp_local6 {
facility(local6) and level(debug .. emerg);
};
filter f_remote_test1_udp {
filter(f_remote_test1_udp_authpriv) or filter(f_remote_test1_udp_local1) or filter(f_remote_test1_udp_local2) or filter(f_remote_test1_udp_local6); };
log {
source(s_src);
filter(f_remote_test1_udp);
destination(d_test1_udp);
};
I got the syslog-ng log:
Jul 22 17:01:10 localhost syslog-ng[14253]: [2020-07-22T17:01:10.448970] WARNING: With use-dns(no), dns-cache() will be forced to 'no' too!;
Jul 22 17:01:10 localhost syslog-ng[14253]: [2020-07-22T17:01:10.450299] Current position not matches to the saved cursor position, seek to head; cursor='s=eabbca1417cd46a398b5e6593d62
Jul 22 17:01:10 localhost syslog-ng[14253]: [2020-07-22T17:01:10.463249] Error binding socket; addr='AF_INET(192.168.1.132:0)', error='Cannot assign requested address (99)'
Jul 22 17:01:10 localhost syslog-ng[14253]: [2020-07-22T17:01:10.463974] Initiating connection failed, reconnecting; time_reopen='60'